Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 784 Bytes

File metadata and controls

35 lines (25 loc) · 784 Bytes

Sign

Sign an unsigned base64 Solana transaction produced by a --dry-run command.

Requires: an active key, unless --key is provided. See setup and keys.

Commands

Sign a transaction

jup sign --tx <base64-transaction>
jup sign --tx <base64-transaction> --key mykey
  • --tx (required) — unsigned base64 transaction bytes
  • --key overrides the active key for this signing operation
// Example JSON response:
{
  "signer": "ABC1...xyz", // signer wallet address
  "signedTransaction": "AQAB..." // signed base64 wire transaction
}

Workflow

Dry-run then sign

jup spot swap --from SOL --to USDC --amount 1 --dry-run
# Copy the `transaction` field from the response
jup sign --tx <base64-transaction>