Brickken API icon

Brickken API

Interact with Brickken API for tokenization and blockchain operations

Transaction → Sign Transaction

AI-generated

Summary

Sign one or more prepared blockchain transactions locally using a provided wallet private key.

Inputs

  • Transaction Data (required) — Transaction object or array of transaction objects to sign locally. If not explicitly provided, defaults to the JSON input's transactions property, single transaction object, or full JSON.
  • Private Key (required) — Wallet private key used to sign the transaction locally. Must be a 64-character hex string with or without 0x prefix.

Output shape

a list of JSON objects corresponding to each input item, each containing the original input data enhanced with the signer address, an array of signed transaction hex strings, and the corresponding transaction hashes as hex strings.

The output JSON includes properties: signerAddress (the address derived from the private key), signedTransactions (hex-encoded signed transactions), and transactionHashes (keccak256 hash of each signed transaction). Supports signing multiple transactions at once. If any input item fails validation or signing, and the node is set to continue on fail, an error message is included in the output JSON for that item.

Examples

Example 1: Sign multiple prepared transactions locally with the private key

Input JSON containing one or more transaction objects under 'transactions' or as a single object; provide the privateKey parameter with the hex private key; output includes signed transactions and their hashes.

Links

Discussion