Skip to main content

avm.buildGenesis RPC Method

Given a JSON representation of this Virtual Machine's genesis state, create the byte representation of that state.

Updated on
Nov 02, 2023

Parameters

networkID
Integer
REQUIRED

The ID of the network

genesisData
JSON
REQUIRED

A JSON representing the genesis data.

encoding
String

The encoding format. Can be either cb58 or hex. Defaults to cb58.

Returns

bytes
String

Genesis byte data.

encoding
String

The encoding format to use. Can be either cb58 or hex. Defaults to cb58.

Request
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free