nativeMetaTx.handler
@bosonprotocol/core-sdk / Exports / nativeMetaTx / handler
Namespace: handler
nativeMetaTx.handler
Table of contents
Functions
Functions
getNonce
▸ getNonce(args
): Promise
<string
>
Parameters
Name | Type |
---|---|
args | Object |
args.contractAddress | string |
args.user | string |
args.web3Lib | Web3LibAdapter |
Returns
Promise
<string
>
Defined in
src/native-meta-tx/handler.ts:21
relayNativeMetaTransaction
▸ relayNativeMetaTransaction(args
): Promise
<TransactionResponse
>
Parameters
Name | Type |
---|---|
args | Object |
args.chainId | number |
args.contractAddress | string |
args.metaTx | Object |
args.metaTx.config | Omit <MetaTxConfig , "apiIds" > & { apiId : string } |
args.metaTx.params | Object |
args.metaTx.params.functionSignature | BytesLike |
args.metaTx.params.sigR | BytesLike |
args.metaTx.params.sigS | BytesLike |
args.metaTx.params.sigV | BigNumberish |
args.metaTx.params.userAddress | string |
args.web3LibAdapter | Web3LibAdapter |
Returns
Promise
<TransactionResponse
>
Defined in
src/native-meta-tx/handler.ts:142
signNativeMetaTx
▸ signNativeMetaTx(args
): Promise
<SignedMetaTx
>
Parameters
Name | Type |
---|---|
args | BaseMetaTxArgs & { domain : { name : string ; version : string } ; functionName : string ; functionSignature : string } |
Returns
Promise
<SignedMetaTx
>
Defined in
src/native-meta-tx/handler.ts:60
signNativeMetaTxApproveExchangeToken
▸ signNativeMetaTxApproveExchangeToken(args
): Promise
<SignedMetaTx
>
Parameters
Name | Type |
---|---|
args | Object |
args.chainId | number |
args.exchangeToken | string |
args.spender | string |
args.user | string |
args.value | BigNumberish |
args.web3Lib | Web3LibAdapter |
Returns
Promise
<SignedMetaTx
>