pm_updatePolicy

Supported on both Mainnet and Testnet.

Endpoint

  • Mainnet: https://open-platform-ap.nodereal.io/{apikey}/megafuel
  • Testnet: https://open-platform-ap.nodereal.io/{apikey}/megafuel-testnet

The {apikey} should be created via Nodereal MegaNode. Please refer to Sponsor Guidelines.

Update an existing sponsor policy. Only the policy owner (identified via the api key) may call this method.

fundingFromAddress semantics:

  • Omit the field → no change
  • Pass "" → clear the address (disables auto-deposit)
  • Pass a valid hex address → set or replace the auto-deposit address
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required
Defaults to <your-nodereal-apikey>
Body Params
integer
Defaults to 1
string
Defaults to 2.0
string
enum
Defaults to pm_updatePolicy
Allowed:
params
array of objects
length between 1 and 1
Defaults to [object Object]
params
uuid
required

UUID of the policy to update. Required.

string

New policy name. Max 64 characters. Omit to leave unchanged.

string

Maximum total gas cost (in wei) per address. Pass "-1" for unlimited. Omit or pass "" to leave unchanged.

string

Maximum gas cost (in wei) per address per day. Pass "-1" for unlimited. Omit or pass "" to leave unchanged.

string

Maximum total gas budget (in wei) for the policy. Pass "-1" for unlimited. Omit or pass "" to leave unchanged. (Admin only — ignored for sponsor callers.)

string

Minimum transaction value (in wei) for sponsorship eligibility. Omit or pass "" to leave unchanged.

string

Maximum sponsored transactions per address per day. Omit or pass "" to leave unchanged.

int64

New policy start Unix timestamp. Omit or pass 0 to leave unchanged.

int64

New policy end Unix timestamp. Must be greater than start. Omit or pass 0 to leave unchanged.

boolean

Set to true to activate or false to deactivate the policy. Omit to leave unchanged.

string

Display name of the sponsor. Max 64 characters. Omit or pass "" to leave unchanged.

string

URL of the sponsor's icon. Max 2048 characters. Omit or pass "" to leave unchanged.

string

URL of the sponsor's website. Max 2048 characters. Omit or pass "" to leave unchanged.

string | null

On-chain address used for auto-deposit detection.

  • Omit (or do not include the field) to leave unchanged.
  • Pass "" to clear (disable auto-deposit).
  • Pass a valid hex address to set or update.
Response

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json