Create a Multisig Transaction
To create a multisig transaction, you can use either Adena's injection API or Gnokey CLI. Both methods generate an unsigned transaction file (.tx) that is fully compatible with each other, meaning you can create a transaction with Adena and sign it with Gnokey, or vice versa.
Code
adena.CreateMultisigTransaction(
params: CreateMultisigTransactionParams,
withSaveFile?: boolean
)Params
messages
ContractMessage[]
Array of transaction messages
fee
object
Fee object containing gasFee and gasWanted
fee.gasFee
string
The gas fee amount with denomination (e.g., "6113ugnot")
fee.gasWanted
string
The maximum gas units allowed for the transaction
memo
string
Optional memo text for the transaction (optional)
withSaveFile
boolean
Flag to automatically save the transaction file (optional, default: false)
ContractMessage Model
type
string
Message type (e.g., "/vm.m_call", "/bank.MsgSend")
value
object
Message value object containing transaction details
Response
code
number
Response code (success: 0)
status
string
Returns "success" or "failure"
type
string
Response type
message
string
Descriptive message of the result
data
object
Create Multisig Transaction Result Model
Create Multisig Transaction Result Model
tx
RawTx
The raw transaction object containing messages, fees, signatures, and memo
/vm.m_call
Sample Request
Sample Response
Multi Messages(/bank.MsgSend, /vm.m_call)
Sample Request
Sample Response
Last updated