bsv_rpc v1.0.0-alpha3 BsvRpc.MetaNet View Source
Function for MetaNet operations.
Link to this section Summary
Functions
Creates a MetaNet root node on the blockchain and creates a graph struct representing it.
Publishes a MetaNet node on the blockchain.
Publishes a MetaNet node on the blockchain.
Link to this section Functions
Link to this function
create_root_node(metanet_key, funding_key)
View Sourcecreate_root_node(ExtendedKey.key(), BsvRpc.PrivateKey.t()) :: BsvRpc.MetaNet.Graph.t()
Creates a MetaNet root node on the blockchain and creates a graph struct representing it.
Link to this function
publish_node(graph, derivation_path, content)
View Sourcepublish_node(BsvRpc.MetaNet.Graph.t(), String.t(), list()) :: {:ok, BsvRpc.MetaNet.Graph.t(), BsvRpc.Transaction.t()}
Publishes a MetaNet node on the blockchain.
Uses funding key in the graph struct to fund the MetaNet node transaction.
Link to this function
publish_node(graph, funding_utxo, derivation_path, content)
View Sourcepublish_node(BsvRpc.MetaNet.Graph.t(), BsvRpc.UTXO.t(), String.t(), list()) :: {:ok, BsvRpc.MetaNet.Graph.t(), BsvRpc.Transaction.t()}
Publishes a MetaNet node on the blockchain.
Uses funding_utxo
to fund the MetaNet node transaction.