Up to 50% Off on Your First Month

Subscribe by April 30th with a credit card and save big!

Sale bannerSale banner

Last updated on January 1, 1970

1 min read

Method /api/v1/allowance/{asset}/{from}/{to} Ontology (ONT)
connect with REST protocol

/api/v1/allowance/{asset}/{from}/{to}

info-circle-fill

Method not allowed

info-circle-fill

Fetches amount of allowance of an asset from one account to another

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/allowance/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"
}