v1

latestOpenAPI 3.1.02026-07-243035381.4 MB
Base - Tatum API

Send BASE or fungible tokens (ERC-20) from account to account

/v3/base/transaction

2 credits per API call

Send BASE or Tatum-supported fungible tokens (ERC-20) from account to account.

NOTE: Sending the fungible tokens is supported only on the mainnet.

Signing a transaction
When sending BASE, you are charged a fee for the transaction, and you must sign the transaction with the private key of the blockchain address from which the fee will be deducted.

Providing the private key in the API is not a secure way of signing transactions, because the private key can be stolen or exposed. Your private keys should never leave your security perimeter. You should use the private keys only for testing a solution you are building on the testnet of a blockchain.

post/v3/base/transaction

Request body

datastring

Additional data that can be passed to a blockchain transaction as a data property; must be in the hexadecimal format

noncenumber

Nonce to be set to Base transaction. If not present, last known nonce will be used.

tostring required

Blockchain address to send assets

currency'ETH_BASE' | 'USDC_BASE' | 'USDT_BASE' required

Currency to transfer from Base Blockchain Account. ERC20 tokens like USDC_BASE, USDT_BASE are available only for mainnet use.

amountstring required

Amount to be sent.

fromPrivateKeystring required

Private key of sender address. Private key, or signature Id must be present.

Example request

{
  "data": "4d79206e6f746520746f2074686520726563697069656e74",
  "to": "0x687422eEA2cB73B5d3e242bA5456b782919AFc85",
  "currency": "ETH_BASE",
  "fee": {
    "gasLimit": "40000",
    "gasPrice": "20"
  },
  "amount": "100000",
  "fromPrivateKey": "0x05e150c73f1920ec14caa1e0b6aa09940899678051a78542840c2668ce5080c2"
}

Response

OK

OR

Example response

{
  "txId": "c83f8818db43d9ba4accfe454aa44fc33123d47a4f89d47b314d6748eb0e9bc9"
}