quickstart.ts, in a project whose package.json has "type": "module", and run it with npx tsx quickstart.ts.
1
Install
@anchor-lang/core and bn.js are peer dependencies.2
Initialize
3
Subscribe
Gateway rounds from the SDK are paid by a subscription. Subscribe once with the signing wallet:
maxPriceUsdc aborts the transaction if the on-chain price is higher than you approved. Without a subscription (or delegate access), the gateway answers 403.4
Define a source
signaturesRequired must be at least 3, the network minimum.5
Request a signed attestation
result is an Attestation. Treat it as unverified until a verifier has checked it.6
Publish it to Solana
Feed account for (sourceId, signaturesRequired, your wallet).7
Build calldata for EVM or Starknet
(success, code) with parseEvmVerifyResult or parseStarknetVerifyResult.Next steps
Maintain a feed
Keep a Solana feed current, batch submits and request many sources.
SDK reference
Every client, type and helper.
Verify on EVM
Consume the attestation in Solidity.