Skip to main content
03 / QUICKSTART
You send 0xkey an unsigned transaction and the account address to sign with. The enclave checks your policies, signs, and returns the signed transaction. You broadcast it yourself. Before you start: create a wallet and note its Ethereum address.

1. Build the unsigned transaction

Use any Ethereum library. The result is an RLP-encoded, hex-encoded unsigned transaction.

2. Sign it

With cURL, the result is in activity.result.signTransactionResult.signedTransaction.
Use transaction signing (sign_transaction) rather than raw-payload signing for transactions. Transaction-field policies such as eth.tx.to and eth.tx.value are evaluated on transaction-signing activities, so this is what lets you restrict where funds can go.

3. Broadcast

For Solana and Tron, set type to TRANSACTION_TYPE_SOLANA or TRANSACTION_TYPE_TRON and see Networks.

Next

Add a policy

Restrict which addresses an API user can send to