Configuration options for the Mercury instance.
Private
_accessPrivate
Readonly
_backendPrivate
Readonly
_defaultPrivate
Readonly
_graphqlPrivate
_backendGeneric method to make a backend request.
Object containing the following properties:
ApiResponse with data or error information.
Private
_createUseful for creating request bodies in snake case for the Mercury backend.
Arguments specific to the method.
Optional
defaultArgs: anyDefault arguments to be combined.
The combined arguments in snake case.
Private
_graphqlGeneric method to make a graphql request.
Object containing the following properties:
ApiResponse with data or error information.
Calls a specific serverless function with the provided arguments.
Object containing the following properties:
ApiResponse with data or error information.
All contracts event subscriptions.
All full account subscriptions.
Retrieves all factory contract data based on the provided contract ID.
The arguments for the request.
The ID of the factory contract.
A promise that resolves to the response containing the factory contract data.
Arguments for the query:
Events the contract is subscribed to.
Executes a custom GrapihQL query.
The query request and optional variables.
Optional
variables?: anyA promise that resolves to the result of the query.
Arguments for the query:
Liquidity pool deposit by public key.
Arguments for the query:
Liquidity pool withdraw by public key.
Arguments for the query:
Path payments strict receive by public key.
Arguments for the query:
Path payments strict send by public key.
Retrieves received payments.
Arguments for the query:
Received payments of given public key.
Retrieves sent payments.
Arguments for the query:
The result of the getSentPayments GraphQL query.
Create a new subscription to a contract event
Arguments for the subscription:
Subscription result.
Subscribes to the full account details.
Arguments for the subscription:
Subscription result.
Create a new subscription to a ledger entry. This is especially useful in scenarios where events alone don't give you enough context.
Arguments for the subscription:
Subscription result.
Subscribes to the expiration of ledger entries.
Arguments for the subscription:
Subscription result.
Subscribes to multiple ledger entries.
The arguments for subscribing to multiple ledger entries.
An array of results for each subscribed ledger entry.
Constructs a Mercury instance with given configuration options.