Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

SignDoc

What gets canonical-JSON encoded and SHA-256 hashed before signing.

Definition

class SignDoc(TypedDict):
    sender: Addr
    gas_limit: int
    messages: list[Message]
    data: Metadata

Fields

senderAddr.

gas_limitint.

messageslist[Message]. Note: field name is messages, NOT msgs. This differs from UnsignedTx / Tx — a faithful mirror of the Rust types.

dataMetadata.

Notes

  • Metadata's expiry field is dropped from the canonical bytes when None (the chain uses skip_serializing_none). sign_doc_canonical_json performs this stripping.

See also