author_submitExtrinsic
Submits a signed SCALE-encoded extrinsic to the Manta Atlantic transaction pool. Returns the extrinsic hash on success.
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
extrinsic | string | Yes | Hex-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
Code | Meaning | Mitigation |
---|---|---|
1010 | Bad signature or payload | Re-sign with correct metadata version. |
-32010 | Pool is full | Retry after monitoring pending queue. |
-32602 | Invalid params | Check that the extrinsic is SCALE-encoded and signed. |
Monitor author_pendingExtrinsics
to track queue length before submitting large batches.