Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions src/pages/sdk/foundry/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -286,10 +286,9 @@ cast send <CONTRACT_ADDRESS> 'increment()' \
--tempo.expiring-nonce --tempo.valid-before $VALID_BEFORE

# Send with access key (delegated signing):
# First authorize the key via Account Keychain precompile
cast send 0xAAAAAAAA00000000000000000000000000000000 \
'authorizeKey(address,uint8,(uint64,bool,(address,uint256,uint64)[],bool,(address,(bytes4,address[])[])[]))' \
$ACCESS_KEY_ADDR 0 '(1893456000,false,[],true,[])' \
# First authorize the key with the Account Keychain CLI
EXPIRY=$(($(date +%s) + 86400))
cast keychain authorize $ACCESS_KEY_ADDR secp256k1 $EXPIRY \
--rpc-url $TEMPO_RPC_URL \
--private-key $ROOT_PRIVATE_KEY
# Then send using the access key
Expand Down Expand Up @@ -444,4 +443,3 @@ cast call 0xAAAAAAAA00000000000000000000000000000000 \
<ACCOUNT> <KEY_ID> <TOKEN_ADDRESS> \
--rpc-url $TEMPO_RPC_URL
```

Loading