cURL
curl --request POST \ --url https://defituna.dial.to/api/v0/lend/{poolToken}/withdraw \ --header 'Content-Type: application/json' \ --data ' { "type": "transaction", "account": "6JpNV6DK88auwzKVizdeT4Bw3D44sam5GqjcPCJ7y176" } '
{ "type": "<unknown>", "transaction": "<string>" }
Generate a transaction for withdrawing a token from DeFiTuna.
Token mint address
The percentage of funds to use
1 <= x <= 100
10
The amount to use. Human readable value, e.g. 0.1 SOL
x >= 0
transaction
"transaction"
The public key of the account that executes the transaction
"6JpNV6DK88auwzKVizdeT4Bw3D44sam5GqjcPCJ7y176"
OK
Was this page helpful?