Skip to main content
An address is the prefix rx followed by 40 lowercase hexadecimal characters.

Derivation

An address is derived from an Ed25519 public key: take the Keccak-256 hash of the 32-byte public key, keep the last 20 bytes, and add the rx prefix.
See Transactions for the keccak256 helper.

Using addresses in a transaction

In a transaction body, the to field holds the 20 bytes of the address, which you get by decoding the 40 hex characters after the rx prefix.
Other values use the same rx prefix, including transaction hashes (rx + 64 hex characters), public keys, block hashes, and signatures. To use one of them as raw bytes, remove the rx prefix and decode the hex.
An address that does not match this format is rejected by the RPC with the error invalid address, must be rx + 40 hex.