Executing a Quote
After receiving a quote from the API, you'll need to handle the transaction execution process. This involves managing token approvals (if needed) and executing the main transfer transaction.
Prerequisites
Quote Response Types from Request Quote
Direct Transfer Response :
{
message: "Direct transfer transaction prepared",
transactionId: string,
type: "Direct",
approvalTxParams: null
transferTxParams: {
to: string,
data: string,
value: string,
gas: string
},
}Swap Transactions Response:
Response Field Details
Common Fields
Transaction Parameters
Approval Parameters
Basic Implementation
Best Practices
Complete Implementation with Error Handling and Status Monitoring:
Error Handling
Status Monitoring
Last updated