CLI
SimpleVRF CLI
A command-line interface for interacting with the SimpleVRF contract on Fuel.
Installation
Configuration
Before using the CLI, set up your configuration:
Available Commands
Configuration Commands
bun start config show– Show current configurationbun start config node <node_type>– Set network node (testnet/mainnet)bun start config contract <contract_address>– Set contract addressbun start config wallet <private_key>– Set wallet private key
Fee Commands
bun start fee get <asset_id>– Get fee for an assetbun start fee set <asset_id> <amount>– Set fee for an asset
Request Commands
bun start request count– Get total number of requestsbun start request num <request_number>– Get request by numberbun start request seed <request_seed>– Get request by seed
Authority Commands
bun start authorities get– List all authoritiesbun start authorities set <authority_address>– Add a new authoritybun start authorities remove <authority_address>– Remove an authority
Withdraw Commands
bun start withdraw <asset_id> <amount>– Withdraw fees (supports ETH or any asset ID)
Examples
Setting up for Mainnet
Managing Fees
Managing Requests
Managing Authorities
Withdrawing Funds
Notes
- The ETH asset ID is automatically handled when using "ETH" as the asset identifier
- All amounts should be provided in the smallest unit (wei for ETH)
- Make sure to keep your private key secure and never share it