Gas Policies (Legacy)

Get amount of tokens paid for gas policy (legacy).

Changed on

Get the amount of ERC-20 tokens collected by a gas policy.

When using a policy that includes payment of gas in ERC-20 tokens, this endpoint returns the amount of tokens paid for gas. This is specific to a policy that doesn't use your own deposited tokens in the paymaster.

get/v1/policies/{id}/withdraw

Request

  • Base URL: https://api.openfort.io
  • URL: https://api.openfort.io/v1/policies/{id}/withdraw
  • Auth: one of:
    • HTTP bearer
    • HTTP bearer

Path parameters

idstring required

Specifies the unique policy ID (starts with pol_).

Response

Successful response.

policystring required
balancestring required
contractstring required

Changes

    • info

      the security scope fee_sponsorship:read was added to the endpoint's security scheme sk

    • info

      api operation id GetPolicyBalance removed and replaced with GetGasPolicyBalanceLegacy

    • info

      api tag Gas Policies (Legacy) added

    • info

      api tag Policies removed