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 therx prefix.
keccak256 helper.
Using addresses in a transaction
In a transaction body, theto 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.invalid address, must be rx + 40 hex.