Point
Point APIs support HTTP protocol. It uses point_ namespace.
point_create
Create an Point.
Parameters
Name | Type | Description |
---|---|---|
sender | String | Sender Address |
name | String | Point name Max length : 30 |
symbol | String | Point symbol. Consists of only alphanumeric characters and can contain up to 4 characters. Max length : 4 |
initialSupply | BigInteger | Initial supply amount of point. It's must be Interger Type. The maximum number of digits is 11. |
decimals | Integer | decimals. Minimum 0 to maximum 18. |
tempKey | String | tempKey for "create" |
hashKey | String | hash(tempKey | secretKey) |
signature | String | sign( hash( sender | name | symbol | initialSupply | decimals | tempKey | hashKey ) ) by sender's privateKey using signData API |
This operation does not require GFEI for gas cost.
Return Value
Name | Type | Description |
---|---|---|
transactionId | String | Transaction Id |
contractAddress | String | Token contract address |
A transactionId is returned, but that doesn't mean it has been completed yet. You should check that the status is 1 by using point_getTransactionStatus.
Example
point_getTransactionStatus
Returns a status of point transaction.
Parameters
Name | Type | Description |
---|---|---|
transactionId | String | Transaction Id |
Return Value
Name | Type | Description |
---|---|---|
status | Integer | See below status type. |
revertReason | String | Reverted reason, if transaction fail. |
Status type
Status | Description |
---|---|
1 | Success |
0 | Fail |
2 | Invalid |
-1 | Pending |
Example
point_mint
Add point issuance. Only the point owner can do this.
Parameters
Name | Type | Description |
---|---|---|
contractAddress | String | Contract address of point |
sender | String | Sender Address (It's must be owner) |
amount | BigDecimal | Mint amount of point. |
comment | String | Comment Max length : 200 |
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 |
This operation does not require GFEI for gas cost.
Return Value
Name | Type | Description |
---|---|---|
transactionId | String | Transaction Id |
A transactionId is returned, but that doesn't mean it has been completed yet. You should check that the status is 1 by using point_getTransactionStatus.
Example
point_burn
Burn the initial supply of point. Only the point owner can do this.
Parameters
Name | Type | Description |
---|---|---|
contractAddress | String | Contract address of point |
sender | String | Sender Address (It's must be owner) |
amount | BigDecimal | Burn amount of point. |
comment | String | Comment Max length : 200 |
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 |
This operation does not require GFEI for gas cost.
Return Value
Name | Type | Description |
---|---|---|
transactionId | String | Transaction Id |
A transactionId is returned, but that doesn't mean it has been completed yet. You should check that the status is 1 by using point_getTransactionStatus.
Example
point_getBalance
Return an address point balance.
Parameters
Name | Type | Description |
---|---|---|
contractAddress | String | Contract address of point. |
address | String | Address |
Return Value
Name | Type | Description |
---|---|---|
balance | BigDecimal | Point balance of address. |
Example
point_transfer
Transfer point from from-address to to-address.
Parameters
Name | Type | Description |
---|---|---|
contractAddress | String | Contract address of point |
sender | String | Sender address |
toAddress | String | To address |
amount | BigDecimal | Transfer amount. |
comment | String | Comment Max length : 200 |
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 |
This operation does not require GFEI for gas cost.
Return Value
Name | Type | Description |
---|---|---|
transactionId | String | Transaction Id |
A transactionId is returned, but that doesn't mean it has been completed yet. You should check that the status is 1 by using point_getTransactionStatus.
Example
point_transferAdmin
Transfer point from from-address to to-address by owner.
Parameters
Name | Type | Description |
---|---|---|
contractAddress | String | Contract address of point |
sender | String | Sender address (spender) |
fromAddress | String | From address |
toAddress | String | To address |
amount | BigDecimal | Transfer amount. |
comment | String | Comment Max length : 200 |
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 |
This operation does not require GFEI for gas cost.
Return Value
Name | Type | Description |
---|---|---|
transactionId | String | Transaction Id |
A transactionId is returned, but that doesn't mean it has been completed yet. You should check that the status is 1 by using point_getTransactionStatus.
Example
Last updated