ERC20 TOKEN

BETA

GetERC20Info

GET https://api.blocksdk.com/v1/eth/erc20/{erc20-address}

Retrieve the information of the ERC20 token

Path Parameters

NameTypeDescription

erc20-address

string

erc20 token contract address

{
    "name":"Tether USD",
    "symbol":"USDT",
    "totalSupply":10484246184.469198,
    "decimals":6,
    "owner":"0xc6cde7c39eb2f0f0095f41570af89efc2c1ea828"
}

GetERC20Balance

GET https://api.blocksdk.com/v1/eth/erc20/{erc20-address}/{eth-address}/balance

Get the erc20 balance of eth-address

Path Parameters

NameTypeDescription

eth-address

string

Ethereum address from which to load balance

erc20-address

string

erc20 token contract address

{
    "balance":128999.8
}

GetERC20transfer

POST https://api.blocksdk.com/v1/eth/erc20/{erc20-address}/{eth-address}/transfer

Send erc20 token from eth-address

Path Parameters

NameTypeDescription

erc20-address

string

erc20 token contract address

eth-address

string

Ethereum address from which to load balance

Headers

NameTypeDescription

x-api-key

string

Request Body

NameTypeDescription

amount

string

Amount of ERC20 Token to send

gwei

string

fee to be used for transactions

gas_limit

string

Maximum amount of gas provided for the transaction(default 90000)

password

string

If it is a loaded Ethereum address, this value is required and you can enter the password used to load it.

private_key

string

Ethereum address that has not been loaded requires this value and is issued when generating the Ethereum address.

to

string

eth-address to receive erc20 tokens

Last updated