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

banner image

Last updated on January 1, 1970

1 min read

Method getallowancev2 Ontology (ONT)
connect with JSON-RPC protocol

getallowancev2

info-circle-fill

Method not allowed

info-circle-fill

return the allowance from transfer-from accout to transfer-to account,ont decimals is 9,ong decimals is 18

Parameters

ont - string

ammount of allowance

from - string

from address

to - string

to address

Request

curl --location --request POST 'https://ont.getblock.io/mainnet/' 
--header 'x-api-key: YOUR-API-KEY' 
--header 'Content-Type: application/json' 
--data-raw '{"jsonrpc": "2.0",
"method": "getallowancev2",
"params": [null, null, null],
"id": "getblock.io"}'

Response

{
    "result": "null",
    "id": "getblock.io",
    "status_code": 405,
    "message": "Method not allowed"
}
banner icon

Start Building with GetBlock RPCs for Free