Skip to main content

moki_sendRawTransaction

Submits a pre-signed transaction for broadcast to the Moki network.

Parameters

  • transaction data: hex - The signed transaction data using SCALE. [transactionType(1 byte identifier), payload, signature]

Returns

transaction hash: hex - The transaction hash, or the zero hash if the transaction is not yet available.

Example

Request

curl https://mainnet.moki.network \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "method": "moki_sendRawTransaction", "params": ["0xf869018203e882520894f17f52151ebef6c7334fad080c5704d77216b732881bc16d674ec80000801ba02da1c48b670996dcb1f447ef9e"], "id": 1}'

Reponse

Example Response
{
"jsonrpc": "2.0",
"id": 1,
"result": "0xe670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331"
}