Skip to main content

nativeMetaTx.handler

@bosonprotocol/core-sdk / Exports / nativeMetaTx / handler

Namespace: handler

nativeMetaTx.handler

Table of contents

Functions

Functions

getNonce

getNonce(args): Promise<string>

Parameters

NameType
argsObject
args.contractAddressstring
args.userstring
args.web3LibWeb3LibAdapter

Returns

Promise<string>

Defined in

src/native-meta-tx/handler.ts:21


relayNativeMetaTransaction

relayNativeMetaTransaction(args): Promise<TransactionResponse>

Parameters

NameType
argsObject
args.chainIdnumber
args.contractAddressstring
args.metaTxObject
args.metaTx.configOmit<MetaTxConfig, "apiIds"> & { apiId: string }
args.metaTx.paramsObject
args.metaTx.params.functionSignatureBytesLike
args.metaTx.params.sigRBytesLike
args.metaTx.params.sigSBytesLike
args.metaTx.params.sigVBigNumberish
args.metaTx.params.userAddressstring
args.web3LibAdapterWeb3LibAdapter

Returns

Promise<TransactionResponse>

Defined in

src/native-meta-tx/handler.ts:142


signNativeMetaTx

signNativeMetaTx(args): Promise<SignedMetaTx>

Parameters

NameType
argsBaseMetaTxArgs & { 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

NameType
argsObject
args.chainIdnumber
args.exchangeTokenstring
args.spenderstring
args.userstring
args.valueBigNumberish
args.web3LibWeb3LibAdapter

Returns

Promise<SignedMetaTx>

Defined in

src/native-meta-tx/handler.ts:104