| Crates.io | amadeus-node |
| lib.rs | amadeus-node |
| version | 1.3.5 |
| created_at | 2025-10-14 15:59:26.677977+00 |
| updated_at | 2025-12-30 05:14:50.782293+00 |
| description | The core library for the Amadeus blockchain node, containing consensus, networking and runtime |
| homepage | |
| repository | https://github.com/amadeusprotocol/rs_node |
| max_upload_size | |
| id | 1882630 |
| size | 419,204 |
Core library for the Amadeus blockchain node with networking, consensus, and storage.
[dependencies]
amadeus-node = "1.3"
use amadeus_node::{Config, Context};
// Load configuration
let config = Config::from_fs(None, None).await?;
// Create network context
let ctx = Context::with_config_and_socket(config, socket).await?;
// Handle incoming message
let protocol_msg = ctx.parse_udp(&buf, src_ip).await;
let instructions = ctx.handle(protocol_msg?, src_ip).await?;
for instruction in instructions {
ctx.execute(instruction).await?;
}
use amadeus_node::consensus::doms::tx;
// Build transaction
let tx_packed = tx::build(
&config,
b"Coin",
"transfer",
&[recipient, amount, symbol],
None,
None,
None,
);
config - Node configuration and identitycontext - Runtime state containerconsensus::fabric - Chain storage (RocksDB)consensus::doms - Domain types (Entry, Tx, Attestation)node::protocol - Network message handlingnode::peers - Peer connection managementnode::txpool - Transaction poolmetrics - Performance telemetrysystem-metrics - Enable CPU/memory monitoring (default)For detailed API documentation, see docs.rs/amadeus-node.
Apache-2.0