Import
Route
chainId is required. Use a decimal chain ID such as "8453" for EVM, or a network ID such as solana:mainnet or stellar:testnet. Pass tokenAddress when an ERC-20 spend condition names no token. The result reports usage already counted and does not predict whether a new request is allowed.
A policy with no metered spend condition returns an empty meters list for a decimal EVM chainId the policy covers. For such a policy, a network ID such as solana:mainnet fails with 400 chainId must be a positive EVM chain ID, whatever the wallet type.
context.userId, the method calls GET /v1/permissions-v2/users/{userId}/policies/{policyId}/usage with walletId in the query instead.
Pass safeAddress to add the policy’s Safe spend meters for that Safe. Without it, the result has the wallet meters alone.
Example
Pass the wallet and network to read their spend meters.Errors
A non-success response throwsParaRestError with the HTTP status, the error code and a message. Permissions errors lists every error code.
An empty path argument throws ParaRestValidationError before the request is sent.