Send crypto from coinbase
(→Example) |
|||
(One intermediate revision by one user not shown) | |||
Line 1: | Line 1: | ||
'''send crypto from coinbase''' is a command that is used to send tokens from a Coinbase wallet to a specified address. | '''send crypto from coinbase''' is a command that is used to send tokens from a Coinbase wallet to a specified address. | ||
− | It's very important to use the correct parameters when using this command because using the wrong parameters | + | It's very important to use the correct parameters when using this command, because using the wrong parameters may result in loss of tokens. |
== Parameters == | == Parameters == | ||
Line 11: | Line 11: | ||
'''Address:''' The address to which the tokens will be sent. This should be a valid address for the currency type you're sending. | '''Address:''' The address to which the tokens will be sent. This should be a valid address for the currency type you're sending. | ||
− | '''Transaction Info Variable:''' (optional) A variable that will hold information about the transaction after it is posted. | + | '''Transaction Info Variable:''' (optional) A variable that will hold information about the transaction after it is posted. Default is '''#txinfo'''. |
== Example == | == Example == | ||
Line 24: | Line 24: | ||
In this script, replace "your api key", "your api secret", and "your passphrase" with your actual API key, API secret, and passphrase. | In this script, replace "your api key", "your api secret", and "your passphrase" with your actual API key, API secret, and passphrase. | ||
− | The script will send 0.0001 of Bitcoin (BTC) to the address " | + | The script will send 0.0001 of Bitcoin (BTC) to the address "bc1q40lacrcwkl037yejtqaf097njle8u8eashamr4". The transaction information will be stored in a variable named '''#txinfo'''. |
Please remember that your API key, API secret, passphrase, and addresses are sensitive information. If you need to show someone your script, ensure to remove these details first. | Please remember that your API key, API secret, passphrase, and addresses are sensitive information. If you need to show someone your script, ensure to remove these details first. | ||
− | After running the command, | + | After running the command, transaction info will be logged to the console. |
− | + | ||
− | + | Note: Because Coinbase doesn't post transactions to the blockchain right away, the transaction data won't have the transaction hash at first. To get the transaction hash, see '''[[get coinbase transaction|$get coinbase transaction]]'''. | |
− | + |
Latest revision as of 18:22, 4 July 2023
send crypto from coinbase is a command that is used to send tokens from a Coinbase wallet to a specified address.
It's very important to use the correct parameters when using this command, because using the wrong parameters may result in loss of tokens.
[edit] Parameters
Amount: The amount of tokens to send.
Currency: The type of currency of the tokens to send.
Address: The address to which the tokens will be sent. This should be a valid address for the currency type you're sending.
Transaction Info Variable: (optional) A variable that will hold information about the transaction after it is posted. Default is #txinfo.
[edit] Example
ui console view config coinbase("your api key", "your api secret", "your passphrase") send crypto from coinbase(0.0001,"BTC","bc1q40lacrcwkl037yejtqaf097njle8u8eashamr4",#txinfo) log object("Transaction Info: {#txinfo}")
In this script, replace "your api key", "your api secret", and "your passphrase" with your actual API key, API secret, and passphrase.
The script will send 0.0001 of Bitcoin (BTC) to the address "bc1q40lacrcwkl037yejtqaf097njle8u8eashamr4". The transaction information will be stored in a variable named #txinfo.
Please remember that your API key, API secret, passphrase, and addresses are sensitive information. If you need to show someone your script, ensure to remove these details first.
After running the command, transaction info will be logged to the console.
Note: Because Coinbase doesn't post transactions to the blockchain right away, the transaction data won't have the transaction hash at first. To get the transaction hash, see $get coinbase transaction.