New Here? Claim Your 30% Discount on Your First Blockchain Node Access!

banner image

Last updated on January 1, 1970

1 min read

Method /api/v1/allowancev2 undefined ()
connect with REST protocol

/api/v1/allowancev2

info-circle-fill

Return the allowance from the from account to the to account, with ONTdecimals being 9, and ONG decimals being 18

Parameters

asset - path

string

Asset contract hash

from - path

string

Source account address

to - path

string

Recipient account address

Request

curl --location --request GET 'https://ont.getblock.io/mainnet/rest/api/v1/allowance2/ont/A9yD14Nj9j7xAB4dbGeiX9h8unkKHxuWwb/AA4WVfUB1ipHL8s3PRSYgeV1HhAU3KcKTq' 
--header 'x-api-key: YOUR-API-KEY' 
--header 'Content-Type: application/json' 

Response

{
    "Action": "getallowance",
    "Desc": "SUCCESS",
    "Error": 0,
    "Result": "10",
    "Version": "1.0.0"
}
banner icon

Start Building with GetBlock RPCs for Free