Readonly
gatewayThe URL of the switchboard gateway.
Optional
Readonly
oracleReadonly
programThe Anchor program instance.
Fetches signatures from the gateway. REST API endpoint: /api/v1/gateway_attest_enclave
A promise that resolves to the attestation response.
if the request fails.
Sends a request to the gateway bridge enclave.
REST API endpoint: /api/v1/gateway_bridge_enclave
A promise that resolves to the response.
if the request fails.
Fetches a quote from the gateway.
REST API endpoint: /api/v1/gateway_fetch_quote
A promise that resolves to the quote response.
if the request fails.
Fetches the randomness reveal from the gateway.
The parameters for the randomness reveal.
The randomness reveal response.
Fetches signatures from the gateway.
REST API endpoint: /api/v1/fetch_signatures
Optional
maxOptional
minOptional
numOptional
recentOptional
useA promise that resolves to the feed evaluation responses.
if the request fails.
Fetches signatures from the gateway without pre-encoded jobs REST API endpoint: /api/v1/fetch_signatures_batch
Optional
numOptional
recentOptional
useA promise that resolves to the feed evaluation responses.
if the request fails.
Fetches signatures from the gateway.
REST API endpoint: /api/v1/fetch_signatures
Optional
recentOptional
useA promise that resolves to the feed evaluation responses.
if the request fails.
Fetches signatures from the gateway. REST API endpoint: /api/v1/fetch_signatures_batch
Optional
recentOptional
useA promise that resolves to the feed evaluation responses.
if the request fails.
Optional
recentOptional
useOptional
numOptional
recentOptional
use
The gateway class is used to interface with the switchboard gateway REST API.