Send Token

Sends a token to a specified address.

From

The account that sends the transaction to transfer tokens. If you leave it blank, it will automatically be set to the deployer address as default . You can find the deployer address by KIP7Deployer.

You can omit the KRN if the from address is managed by the KIP-7 or Wallet Service account-pool.
Otherwise you have to provide the KRN object in the header (x-krn: krn:{chain-id}:wallet:{account-id}:account-pool:{pool name}).

Request
Security:
path Parameters
contract-address-or-alias
required
string

Contract address (in hex.) or alias.

header Parameters
x-chain-id
required
string

Kaia Network Chain ID (1001 or 8217)

Request Body schema: application/json
from
string

The Kaia account address to send the tokens. The default value is the deployer's address.

to
required
string

The Kaia account address to receive the tokens.

amount
required
string

The amount of tokens to transfer (in hex.)

Responses
200

Your request was successful.

400

Your request is not valid.

401

The credential you entered is invalid.

404

The resource you requested doesn't exist.

post/v1/contract/{contract-address-or-alias}/transfer
Request samples
application/json
{
  • "from": "0xd6905b98E4Ba43a24E842d2b66c1410173791cab",
  • "to": "0xaddbf9cbfd30768202b70b5504c012fbdf00b8d8",
  • "amount": "0x50"
}
Response samples
application/json

Your request was successful.

{
  • "status": "Submitted",
  • "transactionHash": "0x60412f876bfb8ae9953caa47be11cd5961a591198e09c25bb8cc3b26e416a862"
}