Send crypto from coinbase

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
(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 could result in loss of tokens.
+
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. If you do not specify a variable, the information will be stored in a variable named "#txinfo" by default.
+
'''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 "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa". The transaction information will be stored in a variable named "#btcTransactionInfo".
+
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, you see the transaction information in the console which might look like:
+
After running the command, transaction info will be logged to the console.
<blockquote>
+
 
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"}}
+
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]]'''.
</blockquote>
+

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.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox