WAX icon

WAX

Interact with the WAX blockchain

Account → Buy RAM

AI-generated

Summary

Buy RAM for a WAX account.

Inputs

  • endpoint (required) — WAX blockchain API endpoint
  • account (required) — WAX account name
  • amount (required) — Amount of WAX

Output shape

Array of result objects returned by the operation

May be empty if no data; success returns an array of returned data

Examples

Example 1: Purchase 3.0 WAX of RAM for account alice

endpoint=https://wax.greymass.com, account=alice, amount=3.0

Example 2: Buy 1.5 WAX of RAM for account bob using custom endpoint

endpoint=https://api.wax.com, account=bob, amount=1.5

Example 3: Buy minimal RAM (1 WAX) for account carol

endpoint=https://wax.greymass.com, account=carol, amount=1

Discussion