r_address!() { /* proc-macro */ }Expand description
Converts an XRPL classic address (r-address) to a 20-byte [AccountID] at compile time.
Accepts a Base58Check-encoded string starting with 'r'. Full checksum
verification happens at compile time — a bad address is a compile error, not a
runtime panic. Only string literals are accepted; runtime &str values are not.
§Example
ⓘ
use xrpl_wasm_stdlib::r_address;
use xrpl_wasm_stdlib::core::types::account_id::AccountID;
const ACCOUNT: AccountID = r_address!("rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh");