RequestNetwork
Last updated
Last updated
Name | Type | Required? | Description |
---|---|---|---|
Type | Description |
---|---|
Type | Description |
---|---|
Name | Type | Required? | Description |
---|---|---|---|
Name | Type | Required? | Description |
---|---|---|---|
Name | Description |
---|---|
nodeConnectionConfig
Axios configurations
signatureProvider
Required to sign and create requests
decryptionProvider
Required to retrieve encrypted requests
httpConfig
Options for HTTP transport (timeout, delay, retry, etc.)
paymentOptions
Payment detection options
useMockStorage
boolean
Store ephemeral requests in local memory
currencies
CurrencyInput[]
Custom currency list
currencyManager
ICurrencyManager
Custom currency manager (will override currencies
). A Currency manager handles a list of currencies and provides utility to retrieve and change format
baseUrl
string
Request Node URL
Many other properties...
Sign using a private key inside of a wallet
Sign using a private key outside of a wallet
Decrypt using a private key outside of a wallet
requestClientVersionHeader
string
Name of the header containing the client version
httpRequestMaxRetry
number
Maximum number of retries to attempt when http requests to the Node fail
httpRequestRetryDelay
number
Delay between retry in ms
httpRequestExponentialBackoffDelay
number
Exponential backoff delay in ms when requests to the Node fail
httpRequestMaxExponentialBackoffDelay
number
Maximum exponential backoff delay in ms when requests to the Node fail
getConfirmationMaxRetry
number
Maximum number of retries to get the confirmation of a persistTransaction
getConfirmationRetryDelay
number
Delay between retry in ms to get the confirmation of a persistTransaction
getConfirmationExponentialBackoffDelay
number
Exponential backoff delay in ms to get the confirmation of a persistTransaction
getConfirmationMaxExponentialBackoffDelay
number
Maximum exponential backoff delay in ms to get the confirmation of a persistTransaction
getConfirmationDeferDelay
number
Delay to wait in ms before trying for the first time to get the confirmation of a persistTransaction
bitcoinDetectionProvider
IBitcoinDetectionProvider
Override default bitcoin payment detection
explorerApiKeys
Map<ChainName, string>
Override explorer API keys
getSubgraphClient
function(ChainName)
Override subgraph payment detection
getRpcProvider
function(ChainName)
Override RPC node provider
Create an unencrypted request
_createEncryptedRequest()
Create an encrypted request. Docs coming soon...
Compute a request ID without actually creating a request
Retrieve a request from a requestId
Retrieve an array of requests from an Identity
Retrieve an array of requests from a topic