Create Policy
Creates a new gas manager policy with the specified rules. Returns the policy id of a successfully created policy. The newly created policy will be in the “inactive” status.
Headers
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
Name of the policy
Type of the policy (e.g. “sponsorship”). Currently we support “sponsorship” (for EVM network policies) and “solana” (for Solana network policies).
ID for the app associated with the new policy. Learn how to find your app ID here.
Rules for “sponsorship” policy type. Empty if policyType
is not “sponsorship”.
Rules for “solana” policy type. Empty if policyType
is not “solana”.
Networks for the policy. Example: [“ETH_MAINNET”]. For Solana policies, valid values are “SOLANA_MAINNET” and “SOLANA_DEVNET”.
Response
Policy created successfully