ONT
POST
GET
Last updated on January 1, 1970
1 min read
Method /api/v1/allowance/{asset}/{from}/{to} undefined ()
connect with REST protocol
/api/v1/allowance/{asset}/{from}/{to}
Method not allowed
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"
}
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" }