Quick Start

We'll create Bitcoin and Ethereum wallets with the APIS Unified API

This is a testnet tutorial -- you'll want to use the APIS SDK for secure mainnet transactions.

1. Create a Bitcoin Wallet

Create Wallet

Use the create wallet endpoint to generate a new Bitcoin wallet address and private key. We’ll use this address for launching our token (we can discard it when we’re done if we want — more on that later).

# Create wallet
curl \
--location \
--request POST 'https://api.theapis.io/api/v1/wallets' \
--header 'Content-Type: application/json' \
--data-raw '{
"chain": "bitcoin",
"network": "testnet"
}'
  • Transfer a little testnet Bitcoin to the new account for creating the smart contract

  • Read the balance of the new account using APIS

Read Balance

get
Read Balance

https://api.theapis.io/v1/wallets?chain=bitcoin&network=testnet&address=<MY_ADDRESS>
Read the Balance of a Bitcoin address
Request
Response
Request
Query Parameters
chain
required
string
Chain
network
required
string
Network
address
required
string
Address
Response
200: OK
{
"balances": {
"ETH": {
"balance": "0",
"uiBalance": "0"
}
}
}
curl "https://api.theapis.io/api/v1/wallets?chain=bitcoin&network=testnet&address=<MY_ADDRESS>"

2. Create an Ethereum Wallet

Create Wallet

Use the create wallet endpoint to generate a new Ethereum wallet address and private key. We’ll use this address for launching our token (we can discard it when we’re done if we want — more on that later).

# Create wallet
curl \
--location \
--request POST 'https://api.theapis.io/api/v1/wallets' \
--header 'Content-Type: application/json' \
--data-raw '{
"chain": "ethereum",
"network": "rinkeby"
}'
  • Transfer a little Rinkeby Ether to the new account for creating the smart contract

  • Read the balance of the new account using APIS

Read Balance

get
Read Balance

https://api.theapis.io/v1/wallets?chain=ethereum&network=rinkeby&address=<MY_ADDRESS>
Read the Balance of a Bitcoin address
Request
Response
Request
Query Parameters
chain
required
string
Chain
network
required
string
Network
address
required
string
Address
Response
200: OK
{
"balances": {
"ETH": {
"balance": "0",
"uiBalance": "0"
}
}
}
# Get wallet
curl "https://api.theapis.io/api/v1/wallets?chain=ethereum&network=rinkeby&address=<MY_ADDRESS>"