Sign
Deprecated
post
https://swap.prod.swing.xyz
/v0/transfer/sign
Generate a signature required by the claim
. This is only required for transactions routing through the WORMHOLE
bridge.
bridge
stringtxId
stringTransaction hash
Example:
0x00000....000
userAddress
stringUser's wallet address
useNativeTokenToClaim
booleanOnly required if bridge is cross swap. Default false which will use relayer fee
fromChain
stringSource chain slug
Example:
ethereum
toChain
stringDest chain slug. Only required in Wormhole bridge. Optional in Nxtp bridge
Example:
ethereum
txHash
stringTransaction Hash returned by signer (e.g. metamask) on source chain.
Responses
200
OK
hash
stringhash of the signature that will be the input of the claim function
relayerFee
stringrelayer fee of the signature that will be the input of the claim function
useNativeTokenToClaim
booleanThis will be used in '/claim' endpoint
associatedTokenTx
stringUnsigned tx data to create associated token account. This is the optional, only for Solana
curl --request POST \--url https://swap.prod.swing.xyz/v0/transfer/sign \--header 'Accept: application/json' \--header 'Content-Type: application/json' \--data '{"bridge": "string","txId": "0x00000....000","userAddress": "string","useNativeTokenToClaim": true,"fromChain": "ethereum","toChain": "ethereum","txHash": "string"}'
1{2"hash": "0x2657fff6d3aaa4caf12960ddc810d2cf5c00e725aae84a5ac34fbead7e1b4671",3"relayerFee": "300000",4"useNativeTokenToClaim": false5}