Send crypto from coinbase
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 could result in loss of tokens.
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. If you do not specify a variable, the information will be stored in a variable named "#txinfo" by default.
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 "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa". The transaction information will be stored in a variable named "#btcTransactionInfo".
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, you see the transaction information in the console which might look like:
Transaction Info: {"id": "5f76c330cd53b4644eaef8d4", "status": "pending", "amount": {"amount": "0.001", "currency": "BTC"}, "native amount": {"amount": "11.23", "currency": "USD"}, "description": null, "created at": "2020-10-01T14:52:40Z", "updated at": "2020-10-01T14:52:40Z", "resource": "transaction", "resource path": "/v2/accounts/562ff00eeb35d977059449b2/transactions/5f76c330cd53b4644eaef8d4", "type": "send", "to": {"resource": "bitcoin address", "address": "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa"}, "instant exchange": false, "details": {"title": "Sent Bitcoin", "subtitle": "To Bitcoin address", "image url": "https://wallet.coinbase.com/images/transaction details 3X.png"}}