Share your GetBlock experience with other devs and get 5M RPCs

banner image

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"
}
banner icon

Start Building with GetBlock RPCs for Free