Random Number Generator (RNG)
Other Documentation
Network Broadcast API
The network broadcast API is available from the full node via web-sockets.

Transactions

broadcast_transaction

Broadcast a transaction to the network.
The transaction will be checked for validity in the local database prior to broadcasting. If it fails to apply locally, an error will be thrown and the transaction will not be broadcast
1
void graphene::app::network_broadcast_api::broadcast_transaction(
2
const precomputable_transaction &trx)
Copied!
Parameters
  • trx: The transaction to broadcast

broadcast_transaction_with_callback

This version of broadcast transaction registers a callback method that will be called when the transaction is included into a block. The callback method includes the transaction id, block number, and transaction number in the block.
1
void graphene::app::network_broadcast_api::broadcast_transaction_with_callback(
2
confirmation_callback cb,
3
const precomputable_transaction &trx)
Copied!
Parameters
  • cb: the callback method
  • trx: the transaction

Block

broadcast_block

Broadcast a signed block to the network.
1
void graphene::app::network_broadcast_api::broadcast_block(
2
const signed_block &block)
Copied!
Parameters
  • block: The signed block to broadcast.