⚠️Blast API (blastapi.io) ends Oct 31. Migrate to Dwellir and skip Alchemy's expensive compute units.
Switch Today →
Skip to main content

author_submitExtrinsic

Submits a signed SCALE-encoded extrinsic to the Manta Atlantic transaction pool. Returns the extrinsic hash on success.

Parameters

ParameterTypeRequiredDescription
extrinsicstringYesHex-encoded, signed extrinsic payload.

Returns

  • result: Hex-encoded hash of the included extrinsic.

Usage Scenarios

  • Mint zkSBT credentials or publish revocations via dedicated runtime pallets.
  • Broadcast private asset transfers that rely on zkAddress proofs.

Request Example

{
"jsonrpc": "2.0",
"method": "author_submitExtrinsic",
"params": [
"0x450284008eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a48"
],
"id": 1
}

Code Example (@polkadot/api)

import { ApiPromise, WsProvider, Keyring } from '@polkadot/api';

const provider = new WsProvider('wss://api-manta-atlantic-mainnet.n.dwellir.com/YOUR_API_KEY');
const api = await ApiPromise.create({ provider });

const keyring = new Keyring({ type: 'sr25519' });
const issuer = keyring.addFromUri('//IssuerSeed');

const tx = api.tx.zksbt.mintPrivate(
schemaId,
recipientCommitment,
proofBytes,
expiry
);

const hash = await tx.signAndSend(issuer);
console.log('zkSBT submitted with hash', hash.toHex());

Error Handling

CodeMeaningMitigation
1010Bad signature or payloadRe-sign with correct metadata version.
-32010Pool is fullRetry after monitoring pending queue.
-32602Invalid paramsCheck that the extrinsic is SCALE-encoded and signed.

Monitor author_pendingExtrinsics to track queue length before submitting large batches.