author_submitExtrinsic – Mythos JSON-RPC Method
Use author_submitExtrinsic
to push signed payloads into the Mythos transaction pool. It’s the workhorse for minting NFTs, placing marketplace orders, and casting DAO votes across Mythical titles.
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
extrinsic | string | Yes | SCALE-encoded signed extrinsic |
Response
Field | Type | Description |
---|---|---|
result | string | Extrinsic hash identifying the submission |
Example Workflow
- Construct Call: Prepare a
pallet_nfts::mint
orpallet_marketplace::buy_item
call. - Sign Payload: Use collator keys, custodial wallets, or Beamable’s Mythos integration to sign off-chain.
- Submit Extrinsic: Encode and send via
author_submitExtrinsic
. - Monitor Inclusion: Watch
chain_subscribeFinalizedHeads
orauthor_submitAndWatchExtrinsic
to confirm success.
curl https://api-mythos-archive.n.dwellir.com/YOUR_API_KEY \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "author_submitExtrinsic",
"params": [
"0x2d0284006f26cdb2c3398f2cabaa0bf51d3c8ec3f3cbe75ffb8b9b8853718055517b2497"
],
"id": 9
}'
The sample payload corresponds to an NFT mint executed on Mythos block 2,611,955
, returning hash 0x6f26…b2497
.
Tips for Game Studios
- Use
pallet_multibatching
to wrap multiple calls (e.g., mint + marketplace listing) into a single submission, reducing fee overhead. - Backpressure high-throughput drops by checking the transaction pool status before queueing thousands of mints.
- Persist extrinsic hashes for replay protection and event reconciliation.