Point

Point APIs support HTTP protocol. It uses point_ namespace.

point_create

Create an Point.

Parameters

NameTypeDescription

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

NameTypeDescription

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

{
    "jsonrpc": "2.0",
    "id": "00456",
    "result": {
        "resultCode": "200",
        "resultMessage": "Success",
        "resultData": {
            "transactionId": "0xf7d37be47ce8b563b07aa5e81e17e9722bab2e71374d970a558b45c0ed51df7b"
        }
    }
}

point_getTransactionStatus

Returns a status of point transaction.

Parameters

NameTypeDescription

transactionId

String

Transaction Id

Return Value

NameTypeDescription

status

Integer

See below status type.

revertReason

String

Reverted reason, if transaction fail.

Status type

StatusDescription

1

Success

0

Fail

2

Invalid

-1

Pending

Example

{
    "jsonrpc": "2.0",
    "id": "00456",
    "result": {
        "resultCode": "200",
        "resultMessage": "Success",
        "resultData": {
            "status": 0,
            "revertReason":"transfer amount exceeds balance"
        }
    }
}

point_mint

Add point issuance. Only the point owner can do this.

Parameters

NameTypeDescription

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

NameTypeDescription

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

{
    "jsonrpc": "2.0",
    "id": "00456",
    "result": {
        "resultCode": "200",
        "resultMessage": "Success",
        "resultData": {
            "transactionId": "0xf7d37be47ce8b563b07aa5e81e17e9722bab2e71374d970a558b45c0ed51df7b"
        }
    }
}

point_burn

Burn the initial supply of point. Only the point owner can do this.

Parameters

NameTypeDescription

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

NameTypeDescription

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

{
    "jsonrpc": "2.0",
    "id": "00456",
    "result": {
        "resultCode": "200",
        "resultMessage": "Success",
        "resultData": {
            "transactionId": "0xf7d37be47ce8b563b07aa5e81e17e9722bab2e71374d970a558b45c0ed51df7b"
        }
    }
}

point_getBalance

Return an address point balance.

Parameters

NameTypeDescription

contractAddress

String

Contract address of point.

address

String

Address

Return Value

NameTypeDescription

balance

BigDecimal

Point balance of address.

Example

{
    "jsonrpc": "2.0",
    "id": "00456",
    "result": {
        "resultCode": "200",
        "resultMessage": "Success",
        "resultData": {
            "balance": "100.12"
        }
    }
}

point_transfer

Transfer point from from-address to to-address.

Parameters

NameTypeDescription

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

NameTypeDescription

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

{
    "jsonrpc": "2.0",
    "id": "00456",
    "result": {
        "resultCode": "200",
        "resultMessage": "Success",
        "resultData": {
            "transactionId": "0xf7d37be47ce8b563b07aa5e81e17e9722bab2e71374d970a558b45c0ed51df7b"
        }
    }
}

point_transferAdmin

Transfer point from from-address to to-address by owner.

Parameters

NameTypeDescription

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

NameTypeDescription

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

{
    "jsonrpc": "2.0",
    "id": "00456",
    "result": {
        "resultCode": "200",
        "resultMessage": "Success",
        "resultData": {
            "transactionId": "0xf7d37be47ce8b563b07aa5e81e17e9722bab2e71374d970a558b45c0ed51df7b"
        }
    }
}

Last updated