Withdrawing Crypto From Coinbase in UBot Studio

Welcome back to our exploration of Coinbase commands in UBot Studio. In this tutorial, we will walk through the process of sending crypto from Coinbase to another wallet.

  1. Before we get started, let’s check how much crypto (in this case, Bitcoin) is currently in our Coinbase account. To do this, we will use the $get coinbase balance function and specify BTC as the currency.
  2. Next, we will drag over the send crypto from coinbase command. In the prompts that appear, we will enter the amount of crypto we want to send, the specific currency, and the address of the wallet where we want to receive the crypto.
  3. In this example, we are using Exodus wallet to receive the crypto, so we will enter the address provided by Exodus. We will also store the transaction info in a global variable for future reference.
  4. After the transaction is complete, we can check our updated balance to see the results. In this case, our balance has decreased by the amount of crypto we sent.
  5. As a final step, we can use an alert command to confirm that the transaction was successful and the crypto was sent to the desired wallet.

Sending crypto from Coinbase to another wallet is a simple process with UBot Studio. Give it a try and see for yourself!

Here’s the code for the first script (note that you can copy and paste this directly into the UBot Studio script window):

config coinbase("YOURAPIKEY","YOURAPISECRET","YOURPASSPHRASE")
send crypto from coinbase(0.0001,"BTC","YOURWALLETADDRESS",#txinfo)
wait for crypto hash($object entity(#txinfo,"id"))

And here’s the code for the second script:

define wait for crypto hash(#tx id) {
    set(#tx data,$get coinbase transaction(#tx id),"Local")
    loop while($crypto hash doesnt exist()) {
        wait(10)
        set(#tx data,$get coinbase transaction(#tx id),"Local")
    }
}
define $crypto hash doesnt exist {
    if($comparison($object entity(#tx data,"details.crypto_transaction_hash"),"= Equals","")) {
        then {
            return("true")
        }
        else {
            return("false")
        }
    }
}

Exchanging Crypto On Coinbase With UBot Studio

Welcome back to our exploration of Coinbase commands in UBot Studio. In this tutorial, we will walk through the process of exchanging crypto on the platform.

  1. Before we get started, let’s check how much crypto (in this case, Bitcoin) is currently in our account. To do this, we will use the $get coinbase balance function and specify BTC as the currency.
  2. Next, we will drag over the exchange crypto on coinbase command. In the prompts that appear, we will enter the amount of crypto we want to exchange, the specific market (such as BTC/USD), and whether we want to buy or sell.
  3. Once all of the details are entered, confirm the exchange and run the command.
  4. After the exchange is complete, we can check our updated balance to see the results. In this case, our balance has doubled from around 1 USD worth of BTC to 2 USD worth of BTC.
  5. As a final step, we can examine the #txinfo variable to see all of the relevant information about the exchange. This can be useful for tracking purposes.

With UBot Studio, exchanging crypto on Coinbase is a simple and straightforward process. Give it a try and see for yourself!

Setting Up Coinbase In UBot Studio

Are you ready to get started using Coinbase in UBot Studio? Follow these steps to properly configure the platform:

  1. First, ensure that you are in the Bot Bank by clicking on the Bot Bank button.
  2. From the Coinbase category, drag over the config coinbase command. You will be prompted to enter your API key, API secret, and passphrase.
  3. Go to pro.coinbase.com 
  4. Navigate to the API section in your account dropdown menu.
  5. Create a new API key and give it the name “UBot Studio.” Make sure to select “view,” “trade,” and “transfer” under permissions.
  6. After you create the API key, you will be given a passphrase. Copy this and paste it into the designated field in UBot Studio.
  7. Go back to Coinbase and scroll to the bottom of the page. Click “create API key” and follow the prompts to obtain your API secret. Copy this and paste it into the appropriate field in UBot Studio.
  8. Finally, copy the API key from Coinbase and paste it into the designated field in UBot Studio.
  9. Click “OK” to complete the configuration process. To confirm that everything is working properly, try using the $get coinbase balance function and check the balance for a specific currency (such as BTC for Bitcoin).

In the future, we will go through each of the Coinbase commands and functions in more detail to show you how to use them and what they do. 

See you next time!

How To Use The Google API Commands in UBot Studio

UBot Studio has built in support for the Google Sheets and Gmail, with more Google API commands on the way.

However, in order to use them, you’ll first need your own Google API Key. It’s a bit of a process, but you only have to do it once.

This video will show you step by step, start to finish, how to get your own Google API keys.