Sponsor a token with ERC-20
Function to sponsor a token with an EOA wallet. See sponsorTokenWithERC20 args.
({ channelAddress: string; sponsoredToken: DeferredTokenIntentWithSignature; to: string; amount: number; mintReferral: string; data: string; transactionOverrides?: TransactionOverrides; }, erc20Contract: Address, erc20AmountRequired: bigint ) => Promise<{ tokenId: bigint | undefined; events: Log[]; } | undefined>
Function to sponsor a token with a smart wallet. See sponsorTokenWithERC20 args.
({ channelAddress: string; sponsoredToken: DeferredTokenIntentWithSignature; to: string; amount: number; mintReferral: string; data: string; transactionOverrides?: TransactionOverrides; }, erc20Contract: Address, erc20AmountRequired: bigint ) => Promise<{ tokenId: bigint | undefined; events: Log[]; } | undefined>
ContractExecutionStatus | erc20ApprovalInProgress
the status of the transaction
bigint
the token id of the sponsored token
string
the transaction hash of the transaction
any
the revert message if the transaction fails