Custom RPC Methods
Snapshot a Sandbox, get native tokens, and mint ERC-20 tokens via the BuildBear Sandbox RPC API.
Snapshot a Sandbox
Properties
POST
segments
sandboxId(string)
RequiredThe ID of the sandbox to querybody
jsonrpc(string)
RequiredThe JSON-RPC version (2.0)method(string)
RequiredThe method to call (evm_snapshot)params(array)
RequiredThe parameters to pass to the methodid(integer)
RequiredThe request IDRequest Example
Response
A successful response returns a snapshot identifier in hex format:
Native Token Faucet
Fund Native Token (ether) to any wallet/address within your sandbox. The balance
field is specified in wei
by default.
Properties
POST
segments
sandboxId(string)
RequiredThe ID of the sandbox to querybody
jsonrpc(string)
RequiredThe JSON-RPC version (2.0)method(string)
RequiredThe method to call (buildbear_nativeFaucet)params(array)
RequiredThe parameters to pass to the methodid(integer)
RequiredThe request IDRequest Example
Response
ERC-20 Token Faucet
Fund ERC20 Tokens to any wallet/address within your sandbox. The balance
field is specified in wei
by default.
Properties
POST
segments
sandboxId(string)
RequiredThe ID of the sandbox to querybody
jsonrpc(string)
RequiredThe JSON-RPC version (2.0)method(string)
RequiredThe method to call (buildbear_ERC20Faucet)params(array)
RequiredThe parameters to pass to the methodid(integer)
RequiredThe request ID