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

Signature Options

Configure how ERC-8128 signatures are generated.

HTTP Options

Standard HTTP options that mirror curl behavior:

OptionDescriptionDefault
-X, --request <method>HTTP method (GET, POST, etc.)GET
-H, --header <header>Add header (repeatable)
-d, --data <data>Request body (use @file or @- for stdin)
-o, --output <file>Write response to filestdout
-i, --includeInclude response headers in outputfalse
-v, --verboseShow request detailsfalse
--jsonOutput response as JSONfalse
--dry-runSign only, do not send the requestfalse
--failExit non-zero for non-2xx responsesfalse
--config <path>Path to .erc8128rc.jsonauto-detected

ERC-8128 Options

Control the Ethereum signature parameters:

OptionDescriptionDefault
--chain-id <id>Chain ID1
--binding <mode>request-bound or class-boundrequest-bound
--replay <mode>non-replayable or replayablenon-replayable
--ttl <seconds>Signature TTL in seconds60
--components <component>Components to sign (repeatable)
--keyid <keyid>Expected key id (erc8128:chainId:address)

Binding Modes

  • request-bound (default) — The signature is tied to the specific request URL, method, and body. --components adds additional components to sign.
  • class-bound — The signature covers only the components you explicitly specify via --components.

Replay Protection

  • non-replayable (default) — Each signed request includes a nonce and can only be used once.
  • replayable — The signature can be reused within the TTL window.

Custom Chain ID

erc8128 curl \
  --chain-id 137 \
  --binding class-bound \
  --replay replayable \
  --ttl 300 \
  --keystore ./keyfile.json \
  https://api.example.com/data