ONT
POST
GET
Last updated on January 1, 1970
1 min read
Method /api/v1/allowancev2 undefined ()
connect with REST protocol
/api/v1/allowancev2
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"
}
Start Building with GetBlock RPCs for Free
Previous
{ "overview": "Overview", "guides": "Guides", "get-started": "Get Started", "rpc-service": "Nodes Methods", "getblock-explorer": "Explorer API", "getblock-tracker": "Tracker API", "nodes-endpoints": "Nodes Endpoints" }
Next
{ "overview": "Overview", "guides": "Guides", "get-started": "Get Started", "rpc-service": "Nodes Methods", "getblock-explorer": "Explorer API", "getblock-tracker": "Tracker API", "nodes-endpoints": "Nodes Endpoints" }