Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 1.88 KB

TransferRequest.md

File metadata and controls

19 lines (14 loc) · 1.88 KB

openapi.model.TransferRequest

Load the model package

import 'package:openapi/api.dart';

Properties

Name Type Description Notes
recipientAddress String The public key address of the recipient to whom you want to send a token or NFT
wallet Wallet
tokenAddress String If you're transfering an NFT, supply the mint (the address of the mint) for the token_address. If you're transfering a token, supply the token address found on the explorer (e.g., see SRMuApVNdxXokk5GT7XD5cUUgXMBCoAz2LHeuAoKWRt for <a href="https://explorer.solana.com/address/SRMuApVNdxXokk5GT7XD5cUUgXMBCoAz2LHeuAoKWRt\" target="_blank">Serum Token) for the token_address. If you're transferring SOL, do not supply a value for token_address. [optional]
network String [optional] [default to 'devnet']
amount String This value must be a string. What you provide here depends on if you are sending an NFT, an SPL token, or SOL. - NFT: This must be '1'. - SPL Token: This must be an integer in string format. To convert from what you see on a wallet UI (e.g., 1 ATLAS, 1 USDC) to an integer value, you have to multiply that value by 10^x where x is the number of decimals. For example, to transfer 0.2 USDC, if USDC uses 6 decimals, then the amount is 0.2 * 10^6 = 200000. You can get the number of decimals for a given SPL token <a href="#operation/solanaGetSPLToken">here. - SOL: Supply this value denominated in SOL in a string format. This does not need to be an integer. For example, if you want to send 0.0005 SOL, then amount = "0.0005". [optional] [default to '1']

[Back to Model list] [Back to API list] [Back to README]