ERC20 Token
Token ERC20 APIs.
Last updated
Token ERC20 APIs.
Last updated
Return an address Token balance.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Add token issuance. Only the token owner can do this. (There are tokens for which the mint function is not provided according to the contract.)
A transactionId is returned, but that doesn't mean it has been added to the Block yet. You should check that the status is 1 by using net_getTransactionStatus.
Burn the initial supply of token. Only the token owner can do this.
A transactionId is returned, but that doesn't mean it has been added to the Block yet. You should check that the status is 1 by using net_getTransactionStatus.
Transfer Token from from-address to to-address.
A transactionId is returned, but that doesn't mean it has been added to the Block yet. You should check that the status is 1 by using net_getTransactionStatus.
Transfer Token from from-address to to-address by spender.
A transactionId is returned, but that doesn't mean it has been added to the Block yet. You should check that the status is 1 by using net_getTransactionStatus.
Approve Token from owner-address to spender-address.
A transactionId is returned, but that doesn't mean it has been added to the Block yet. You should check that the status is 1 by using net_getTransactionStatus.
Returns an allowed Token amount from owner address to to spender address.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
contractAddress
String
Contract address of token.
address
String
Address
balance
BigDecimal
Token balance of address.
contractAddress
String
Contract address of token
sender
String
Sender Address (It's must be owner)
amount
BigDecimal
Mint amount of token.
tempKey
String
tempKey for "mint"
hashKey
String
hash(tempKey | secretKey)
signature
String
sign( hash( contractAddress | owner | amount | tempKey | hashKey ) ) by sender's privateKey using signData API
gasPrice
BigDecimal
gasPrice
nonce
BIgInteger
nonce value. If it is null, it will be filled in automatically. If acceleration is needed, use the nonce value generated when performing the transaction and use a higher gasPrice than the previous transaction.
transactionId
String
Transaction Id
nonce
BigInteger
nonce Value
contractAddress
String
Contract address of token
sender
String
Sender Address (It's must be owner)
amount
BigDecimal
Burn amount of token.
tempKey
String
tempKey for "burn"
hashKey
String
hash(tempKey | secretKey)
signature
String
sign( hash( contractAddress | owner | amount | tempKey | hashKey ) ) by sender's privateKey using signData API
gasPrice
BigDecimal
gasPrice
nonce
BigInteger
nonce value. If it is null, it will be filled in automatically. If acceleration is needed, use the nonce value generated when performing the transaction and use a higher gasPrice than the previous transaction.
transactionId
String
Transaction Id
nonce
BigInteger
nonce value
contractAddress
String
Contract address of token
sender
String
Sender address
toAddress
String
To address
amount
BigDecimal
Transfer amount.
tempKey
String
tempKey for "transfer"
hashKey
String
hash(tempKey | fromAddress' secretKey)
signature
String
sign( hash( contractAddress | sender | toAddress | amount | tempKey | hashKey ) ) by sender's privateKey using signData API
gasPrice
BigDecimal
gasPrice
nonce
BigInteger
nonce value. If it is null, it will be filled in automatically. If acceleration is needed, use the nonce value generated when performing the transaction and use a higher gasPrice than the previous transaction.
transactionId
String
Transaction Id
nonce
BigInteger
nonce value
contractAddress
String
Contract address of token
sender
String
Sender address (spender)
fromAddress
String
From address
toAddress
String
To address
amount
BigDecimal
Transfer amount.
tempKey
String
tempKey for "transfer"
hashKey
String
hash(tempKey | fromAddress' secretKey)
signature
String
sign( hash( contractAddress | sender | fromAddress | toAddress | amount | tempKey | hashKey ) ) by sender's privateKey using signData API
gasPrice
BigDecimal
gasPrice
nonce
BigInteger
nonce value. If it is null, it will be filled in automatically. If acceleration is needed, use the nonce value generated when performing the transaction and use a higher gasPrice than the previous transaction.
transactionId
String
Transaction Id
nonce
BigInteger
nonce value
contractAddress
String
Contract address of token
sender
String
Sender address
spender
String
Spender address
amount
BigDecimal
Approve amount.
tempKey
String
tempKey for "approve"
hashKey
String
hash(tempKey | fromAddress' secretKey)
signature
String
sign( hash ( contractAddress | sender | spender | amount | tempKey | hashKey ) ) by sender's privateKey using signData API
gasPrice
BigDecimal
gasPrice
nonce
BingInteger
nonce value. If it is null, it will be filled in automatically. If acceleration is needed, use the nonce value generated when performing the transaction and use a higher gasPrice than the previous transaction.
transactionId
String
Transaction Id
nonce
BigInteger
nonce value
contractAddress
String
Contract address of token.
sender
String
Allower address
spender
String
Spender address
amount
BigDecimal
Allowed Token amount.