Skip to main content
Function Signature
Description Builds the approval transaction(s) for a token delegation, then signs and broadcasts each one sequentially and returns the resulting transaction hashes. This replaces calling approve and signing the returned transactions yourself.
approveAndSubmit broadcasts each transaction and returns as soon as it is accepted by the network. It does not wait for on-chain confirmation. A hash in DelegationSubmitResult.hashes means the transaction was submitted, not that it succeeded — the approval can still revert. If your flow depends on the delegation being active, wait for the receipt yourself, or poll getStatus before proceeding.
Parameters ApproveDelegationRequest: DelegationSubmitOptions: Returns A DelegationSubmitResult containing: Throws Example Usage
Related Documentation