Transaction Signing Method
A set of methods that require a transaction signature provided by the SSS object
requestSign
- no arguments
- Return Value Promise<SignedTransaction>
Sign the transaction registered in SSS and return the signed transaction.
// window.SSS
const tx = ...;
window.SSS.setTransaction(tx);
window.SSS.requestSign().then((signedTx) => {
// announce
})
// sss-module
import { setTransaction, requestSign } from "sss-module";
const tx = ...;
setTransaction(tx);
requestSign().then((signedTx) => {
// announce
})
requestSignCosignatureTransaction
- Argument None
- Return value Promise<SignedTransaction>
Sign an aggregate transaction registered with SSS and return the signed transaction.
// window.SSS
const tx = ...;
window.SSS.setTransaction(tx);
window.SSS.requestSignCosignatureTransaction().then((signedTx) => {
// announce
})
// sss-module
import { setTransaction, requestSignCosignatureTransaction } from "sss-module";
const tx = ...;
setTransaction(tx);
requestSignCosignatureTransaction().then((signedTx) => {
// announce
})
requestSignWithCosignatories
- argument cosignatories: Account[]
- Return value Promise<SignedTransaction>
Signs a transaction registered in SSS with the co-signer given as an argument and returns the signed transaction.
// window.SSS
const tx = ...;
const accounts = ...;
window.SSS.setTransaction(tx);
window.SSS.requestSignWithCosignatories([accounts]).then((signedTx) => {
// announce
})
// sss-module
import { setTransaction, requestSignWithCosignatories } from "sss-module";
const tx = ...;
const accounts = ...;
setTransaction(tx);
requestSignWithCosignatories([accounts]).then((signedTx) => {
// announce
})