Point

포인트 API는 HTTP 프로토콜을 지원합니다. point_네임스페이스를 사용합니다.

point_create

포인트를 생성합니다.

Parameters

NameTypeDescription

sender

String

발신인 주소

name

String

포인트명 Max length : 30

symbol

String

포인 심볼. 영숫자 문자로만 구성되며 최대 4자를 포함할 수 있습니다. 최대 길이 : 4

initialSupply

BigInteger

포인트초기공급량입니다. 정수형이며. 최대 자릿수는 11자리입니다.

decimals

Integer

소수점 이하 최소 0 ~ 최대 18.

tempKey

String

tempKey for "create"

hashKey

String

해쉬값 (tempKey | secretKey)

signature

String

서명값 ( hash( sender | name | symbol | initialSupply | decimals | tempKey | hashKey ) ) by sender's privateKey using signData API

이 작업은 가스 비용으로 GFEI가 필요하지 않습니다.

Return Value

NameTypeDescription

transactionId

String

Transaction Id

contractAddress

String

토큰 계약 주소

트랜잭션 ID가 반환되지만 아직 완료되었다는 의미는 아닙니다. point_getTransactionStatus를 사용하여 상태가 1인지 확인해야 합니다.

Example

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

point_getTransactionStatus

포인트 트랜잭션의 상태를 반환합니다.

Parameters

NameTypeDescription

transactionId

String

Transaction Id

Return Value

NameTypeDescription

status

Integer

아래 상태 유형 참조.

revertReason

String

트랜잭션이 실패했을때 설명

Status type

StatusDescription

1

성공

0

실패

2

Invalid

-1

보류

Example

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

point_mint

포인트 발급을 추가합니다. 포인트 소유자만 이 작업을 수행할 수 있습니다.

Parameters

NameTypeDescription

contractAddress

String

토큰 계약 주소

sender

String

발신인 주소 (It's must be owner)

amount

BigDecimal

Mint amount of point.

comment

String

Comment Max length : 200

tempKey

String

tempKey for "mint"

hashKey

String

해쉬값 (tempKey | secretKey)

signature

String

서명값 ( hash( contractAddress | owner | amount | tempKey | hashKey ) ) by sender's privateKey using signData API

이 작업은 가스 비용으로 GFEI가 필요하지 않습니다.

Return Value

NameTypeDescription

transactionId

String

Transaction Id

트랜잭션 ID가 반환되지만 아직 완료되었다는 의미는 아닙니다. point_getTransactionStatus를 사용하여 상태가 1인지 확인해야 합니다.

Example

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

point_burn

초기 공급된 포인트를 소각합니다. 포인트 소유자만 이 작업을 수행할 수 있습니다.

Parameters

NameTypeDescription

contractAddress

String

포인트 계약 주소

sender

String

발신인 주소 (It's must be owner)

amount

BigDecimal

소각할 양

comment

String

Comment Max length : 200

tempKey

String

tempKey for "burn"

hashKey

String

해쉬값(tempKey | secretKey)

signature

String

서명값 ( hash( contractAddress | owner | amount | tempKey | hashKey ) ) by sender's privateKey using signData API

이 작업은 가스 비용으로 GFEI가 필요하지 않습니다..

Return Value

NameTypeDescription

transactionId

String

Transaction Id

트랜잭션 ID가 반환되지만 아직 완료되었다는 의미는 아닙니다. point_getTransactionStatus를 사용하여 상태가 1인지 확인해야 합니다.

Example

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

point_getBalance

포인 잔액 반환

Parameters

NameTypeDescription

contractAddress

String

포인트 계약 주소

address

String

주소

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

주소에서 주소로 포인트 전송.

Parameters

NameTypeDescription

contractAddress

String

포인트 계약 주소

sender

String

발신인 주소

toAddress

String

받는 주소

amount

BigDecimal

전송량

comment

String

Comment Max length : 200

tempKey

String

tempKey for "transfer"

hashKey

String

해쉬값(tempKey | fromAddress' secretKey)

signature

String

서명값( hash( contractAddress | sender | toAddress | amount | tempKey | hashKey ) ) by sender's privateKey using signData API

이 작업은 가스 비용으로 GFEI가 필요하지 않습니다.

Return Value

NameTypeDescription

transactionId

String

Transaction Id

트랜잭션 ID가 반환되지만 아직 완료되었다는 의미는 아닙니다. point_getTransactionStatus를 사용하여 상태가 1인지 확인해야 합니다.

Example

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

point_transferAdmin

소유자가 주소에서 주소로 포인트를을 전송합니다.

Parameters

NameTypeDescription

contractAddress

String

포인트 계약 주소

sender

String

발신인 주소 (spender)

fromAddress

String

보내는 주소

toAddress

String

받는 주소

amount

BigDecimal

전송량

comment

String

Comment Max length : 200

tempKey

String

tempKey for "transfer"

hashKey

String

해쉬값 (tempKey | fromAddress' secretKey)

signature

String

서명값( hash( contractAddress | sender | fromAddress | toAddress | amount | tempKey | hashKey ) ) by sender's privateKey using signData API

이 작업은 가스 비용으로 GFEI가 필요하지 않습니다.

Return Value

NameTypeDescription

transactionId

String

Transaction Id

트랜잭션 ID가 반환되지만 아직 완료되었다는 의미는 아닙니다. point_getTransactionStatus를 사용하여 상태가 1인지 확인해야 합니다.

Example

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

Last updated