Transactions
Send transactions on Cardano using OneKey
Learn how to sign and submit transactions on Cardano.
Sign Transaction
// transaction should be CBOR-encoded hex string
const signedTx = await api.signTx(transactionCbor, partialSign)
// partialSign: boolean
// - false: sign all inputs owned by wallet
// - true: sign only inputs explicitly owned (for multi-sig)
console.log('Signed TX:', signedTx)Submit Transaction
// Submit signed transaction
const txHash = await api.submitTx(signedTransactionCbor)
console.log('Transaction hash:', txHash)Complete Transaction Flow
Using with Lucid
Lucid provides a simpler API:
Using with Mesh
Mesh is another popular Cardano SDK:
Last updated
Was this helpful?