Altius Transaction SDK
This crate provides utilities for signing and encoding Altius USD multi-token transactions. It can be used by:
explorer-apifor faucet functionality- Any client that needs to send transactions to Altius
Security Note
This SDK does NOT contain any private keys or addresses. All chain-specific configuration (fee token address, faucet keys, etc.) must be provided by the application layer through environment variables or configuration files.
Example
use ;
// Create a signer
let signer = from_private_key?;
// Build an ERC20 transfer transaction
let tx = new
.chain_id
.nonce
.erc20_transfer
.fee_token
.max_fee_per_gas_usd
.build;
// Sign and encode
let raw_tx = signer.sign_and_encode.await?;