Skip to main content

/accounts/{accountId}/asset-approvals REST API Endpoint

Returns information about an account's asset approval transaction. It is required to pass in a delegate and an assetId as query parameters

Updated on
Sep 2, 2024

/accounts/{accountId}/asset-approvals REST API Endpoint

Path Parameters

accountId
string
REQUIRED
SS58 address of the account

Query Parameters

at
string
Block at which to query asset approval info for the specified account
assetId
string
REQUIRED
The `assetId` associated with the asset-approval
delegate
string
REQUIRED
The delegate's `accountId` associated with an asset-approval

Returns

at
object
The object containing information about the state:
hash
string
The hash of the block at the specified state
height
string
The height of the block at the specified state
amount
string
The total amount of the deposit.
deposit
string
The specific deposit amount associated with the account at the specified state
Request
1
curl --location 'https://docs-demo.dot-mainnet.quiknode.pro/accounts/{accountId}/asset-approvals?assetId={assetId}&delegate={delegate}' \
2
--header 'Accept: application/json'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free