TSwap

Deposit/Withdraw SOL

Creates the transaction to Deposit/Withdraw SOL to/from a TSwap pool

get/tx/tswap/deposit_withdraw_sol

Request

  • Base URL
    https://api.mainnet.tensordev.io/api/v1
  • URL
    https://api.mainnet.tensordev.io/api/v1/tx/tswap/deposit_withdraw_sol
  • Auth
    API key in header x-tensor-api-key

Query parameters

action'DEPOSIT' | 'WITHDRAW' required

The action to perform. Either "deposit" or "withdraw"

poolAddressstring required

The address of the swap pool

lamportsnumber float required

The amount of SOL to deposit/withdraw

blockhashstring required

The blockhash to be passed into the transaction

computeinteger

Compute units for the transaction

priorityMicroLamportsinteger

The priority in micro-lamports to be used for the transaction

Response

Ok

totalCostnumber double nullable

Changes

No recorded changes to this operation across all 2 revisions of this API.