Send (Transfer)
Get a transfer transaction for the route selected from the getQuote
endpoint.
Amount in minimal divisible unit (wei)
Token address on source chain
User's wallet on source chain.
Destination token amount for contract call
Best route returned by Swing /quote endpoint
The status of the current transfer step. It should be in one of these values: allowance' | 'approve' | 'send' | 'nativeStaking' | 'bridge' | 'sign' | 'claim';
Token address on the destination chain.
User's wallet address on the destination chain.
Solana specific token account address (required if transfer is from Solana to EVM chains)
Solana specific token account address (required if transfer is from EVM chains to Solana)
An optional percentage value passed as a decimal between 0 and 1. (i.e 0.02 = 2%). Defaults between 0.5% and 1% based on chain and token. Your transaction will revert if the price changes unfavorably by more than this percentage.
Nxtp requires encryptionPublicKey to encrypt callData.
partner company contract address
Project Identifier. Optional. Will return project-specific configuration
Parameters for contract call
The address of the contract to interact with.
The callData to be sent to the contract for the interaction on the destination chain.
The estimated gas used by the destination call. If this value is incorrect, the interaction may fail -- choose this carefully!
Some contract interactions will output a token (e.g. staking), specify the token address to forward the token to the user. Omit this parameter if no token should be returned to the user.
If the approval address is different thant the contract to call, specify that address here.
Optionally set the percentage of fee charged by partners per each transaction in Basis Points (BPS) units. This will override the default fee rate configured via platform. 1 BPS = 0.01%. The maximum value is 1000 (which equals 10%). The minimum value is 1 (which equals 0.01%).
Affiliate ID for tracking purposes. Optional.
Setting to any truthy-value will skip transaction validations on-chain. By default, we check for transactions that will fail on-chain execution (ex. not enough allowance or in-sufficent funds) and return an error.