Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 4.86 KB

GeneralTransferRequest.md

File metadata and controls

20 lines (15 loc) · 4.86 KB

Org.OpenAPITools.Model.GeneralTransferRequest

Properties

Name Type Description Notes
RecipientBlockchainIdentifier string The blockchain identifier of the recipient to whom you want to send a token or NFT. On Ethereum, this is the hex public address of the recipient (e.g., `0x150865ca659204a9a0cd0da00296c6b5db441172`) On Solana, this is the public key of the recipient (e.g., `EW3nXn7X4NTWFKWaJgxKrFNoTSkop1cBUVHA21zrfF6u`).
Wallet GeneralWallet [optional]
TokenBlockchainIdentifier string The `token_blockchain_identifier` identifies the token you wish to transfer. - If you're transferring a native blockchain currency (e.g., SOL, ETH, BNB), then simply do not supply this value. - If you're transfering an NFT, then supply the token address of the NFT. On Solana, this is the `mint_address` or `mint` (the address of the mint). - If you're transfering a token, supply the token address. For Solana, you can find on this on the Solana Explorer (e.g., see `SRMuApVNdxXokk5GT7XD5cUUgXMBCoAz2LHeuAoKWRt` for <a href=&quot;https://explorer.solana.com/address/SRMuApVNdxXokk5GT7XD5cUUgXMBCoAz2LHeuAoKWRt\" target=&quot;_blank&quot;>Serum Token</a>) for the `token_address`. Examples: - Ethereum: `0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48` - Solana: `CK1LHEANTu7RFqN3XMzo2AnZhyus2W1vue1njrxLEM1d` [optional]
Network string The network of the blockchain you selected - Solana: `devnet`, `mainnet-beta` - Ethereum: `ropsten`, `mainnet` Defaults when not provided (not applicable to path parameters): - Solana: `devnet` - Ethereum: `ropsten` [optional]
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. - Native Currency (e.g., SOL, ETH, BNB): Supply this value denominated in the native currency (e.g., in SOL (but not in Lamports), or in ETH (but not in Wei)) in a string format. This does not need to be an integer. For example, if you want to send 0.0005 SOL, then `amount = &quot;0.0005&quot;`. If you want to send 0.0005 ETH, then `amount = &quot;0.0005&quot;`. - NFT: This must be `1`. - 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^<i>x</i> where <i>x</i> 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. - For Solana, you can get the number of decimals for a given SPL token <a href=&quot;#operation/solanaGetSPLToken&quot;>here</a>. We are working on analogues of this endpoint for other blockchains. [optional] [default to "1"]
ReturnCompiledTransaction bool - If `false`, we sign and submit the transaction (`wallet` is required in this case; do not provide a value for `sender_blockchain_identifier`). - If `true`, we compile the transaction (either `wallet` or `sender_blockchain_identifier` is required in this case; do not provide both). [optional] [default to false]
SenderBlockchainIdentifier string To understand the purpose of `sender_blockchain_identifier` first note the following: There are two ways you can complete a transfer transaction: - (1) we complete it for you with your `wallet` information or - (2) we return the raw instruction data that you can sign and submit yourself (no private keys required). When you provide your `wallet` authentication, we are able to determine your wallet's blockchain identifier (public key or address) which is the sender public key of the transaction. When you are not providing your `wallet` as authentication, we still need the `sender_blockchain_identifier` to be able to return the compiled transaction. Thus, you provide `sender_blockchain_identifier` if and only if you are not providing `wallet` authentication information and you are returning a compiled transaction. You will receive an error if you provide both `wallet` and `sender_blockchain_identifier`. You will receive an error if you provide neither `wallet` nor `sender_blockchain_identifier`. [optional] [default to "null"]
FeePayerWallet GeneralFeePayerWallet [optional]

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