Token API

This is an introduction page for the Token API.

About Token API

The Token API of ChainZ API Service allows you to create and manage ERC20 tokens. Users can easily issue ERC20 tokens by specifying the owner account, token name, token symbol, and issuance amount, and making a request through the API. In addition to token transfer, it also provides various management functions in API form, such as delegation, burning, additional issuance, and suspension of token transactions.

In order to process tokens, a Sender Account must be created in advance using the Account API.

Using Token API

For the usage method, refer to Getting Started > API Usage > Procedure for using API > Using Token API.

List of Token APIs

Classification

Method

API name

Description

Account

POST

/api/v1/chain/{chainId}/accounts

Create a user blockchain account.

GET

/api/v1/chain/{chainId}/accounts

Search the user blockchain account information.

Contract

POST

/api/v1/chains/{chainId}/deployments

Request token contract deployment.

GET

/api/v1/chains/{chainId}/deployments

Search the token contract deployment request details.

Token

GET

/api/v1/chains/{chainId}/contracts/{contractAddress}/totalSupply

Search the total amount of tokens issued.

GET

/api/v1/chains/{chainId}/contracts/{contractAddress}/balanceOf/{ownerAddress}

Search the token holdings of an account.

GET

/api/v1/chains/{chainId}/contracts/{contractAddress}/allowance/owner/{ownerAddress}/spender/{spenderAddress}

Search the amount of tokens that are available for the token delegated by the owner.

GET

/api/v1/chains/{chainId}/contracts/{contractAddress}/decimals

Search token decimal digit information.

GET

/api/v1/chains/{chainId}/contracts/{contractAddress}/tokenDetails

Search token information. (name, symbol, decimals, totalSupply)

POST

/api/v1/chains/{chainId}/contracts/{contractAddress}/approve

Request a user (spender) to be delegated to use tokens and set the token amount.

GET

/api/v1/chains/{chainId}/contracts/{contractAddress}/approve

Search the user (spender) who can use it on behalf of the owner and the token amount setting request details.

POST

/api/v1/chains/{chainId}/contracts/{contractAddress}/burn

Request the token burn.

GET

/api/v1/chains/{chainId}/contracts/{contractAddress}/burn

Search the token burn request details.

POST

/api/v1/chains/{chainId}/contracts/{contractAddress}/burnFrom

Request the user(sender) who can use it to burn the owner's token.

GET

/api/v1/chains/{chainId}/contracts/{contractAddress}/burnFrom

Search the token burning request details of the owner from the user (spender) who is allowed to use tokens.

POST

/api/v1/chains/{chainId}/contracts/{contractAddress}/mint

Request to issue additional tokens.

GET

/api/v1/chains/{chainId}/contracts/{contractAddress}/mint

Search the details of the request to issue additional tokens.

POST

/api/v1/chains/{chainId}/contracts/{contractAddress}/pause

Request the token to be suspended/unsuspended.

GET

/api/v1/chains/{chainId}/contracts/{contractAddress}/pause

Search the details of the request to suspend/unsuspend tokens.

POST

/api/v1/chains/{chainId}/contracts/{contractAddress}/transfer

Request the sender to transfer a token for the amount specified to the recipient.

GET

/api/v1/chains/{chainId}/contracts/{contractAddress}/transfer

Search the details of the token transfer request of the specified amount from the sender to the recipient.

POST

/api/v1/chains/{chainId}/contracts/{contractAddress}/transferFrom

Request to send the token of the owner to the recipient from the user(spender) who is designated to use it on behalf of the owner.

GET

/api/v1/chains/{chainId}/contracts/{contractAddress}/transferFrom

Search transfer request details by the user(spender) who is designated to use the tokens on behalf of the owner to the recipient.

GET

/api/v1/chains/{chainId}/contracts/{contractAddress}/holder

Search the list of token holdings.

Event

GET

/api/v1/chains/{chainId}/contracts/{contractAddress}/events

Search the token event details.

Last updated