DataUpdateResult — a payload ready to submit to any chain’s verifier. The recommended access path is the SDK gateway client (sdk.gateway), which handles auth, optional context reuse, and struct assembly.
Default base URL (also exported as DEFAULT_GATEWAY_ENDPOINT):
requestSignedData
DataUpdateResult. The SDK may take feedId for local context, but the HTTP gateway derives feed identity from (consumerAuthority|payer, apiConfig, signaturesRequired) and never trusts a client-supplied feed id. Live gateway rounds return fresh: true.
Execution is authenticated with an authSig produced by the wallet’s signAuthMessage (or derived from a keypair-backed Wallet.payer). The gateway requires a valid 64-byte Ed25519 authSig — all-zero signatures are rejected.
Private APIs
MolphaSDK wires verifyNodeKeys to solana.verifyNodeKeysForPrivateApi, which checks gateway node encryption keys against on-chain Node accounts before secrets are encrypted.
prepareContext
RoundContext. Pass it back via context to skip those prelude fetches on subsequent rounds. There is no automatic client-side cache — reuse is explicit.
Response shape
The flatDataUpdateResult maps 1:1 onto every chain’s verifier structs via buildEvmVerifierArgs / buildStarknetVerifierArgs, or directly into Solana’s SubmitDataUpdateArgs:
HTTP gateway notes
- Authentication: requests carry an
authSigproduced by the caller’s wallet (signAuthMessageor keypair-derived). The gateway verifies it; all-zero signatures fail with401. - Freshness: live execute responses set
fresh: true. To read a previously submitted Solana value without a new round, read theFeedaccount. - Registry: pass
prepareContext(feedId)result ascontextto reuse registry version, redundancy buffer, and nodes across rounds.
The current HTTP route for subscription-backed rounds is
POST /v1/round/execute. Clients send apiConfig, signaturesRequired, registryVersion, and authSig; the gateway derives feedId and echoes it in the response. Agent pay-per-request rounds use POST /v1/agent/execute with exact amount (not max_price). Full schemas: Gateway API.