Events

Listen to events from the Etherspot SDK

Before we continue, please ensure that you have had a look at our Supported Ethereum Chains, followed the steps in Install Etherspot SDK and how to Bootstrap Etherspot SDK. We're assuming that you have completed these steps before going forward.

Getting started

The Etherspot SDK allows developers and users of their SDK instances to receive events as they happen within the Etherspot platform. These event mechanisms allow applications to react to, or, monitor the state of their application actions and perform additional functions or business logic afterwards.

Etherspot currently supports the following events:

Event Name

Description

AccountMemberCreated

AccountMemberUpdated

AccountUpdated

ENSNodeCreated

ENSNodeUpdated

GatewayBatchCreated

GatewayBatchUpdated

P2PPaymentChannelCreated

P2PPaymentChannelUpdated

P2PPaymentDepositCreated

P2PPaymentDepositUpdated

PaymentHubBridgeCreated

PaymentHubBridgeUpdated

PaymentHubCreated

PaymentHubDepositCreated

PaymentHubDepositUpdated

PaymentHubPaymentCreated

PaymentHubUpdated

TransactionUpdated

This event type is fired when an update occurs against a transaction made with the ETherspot SDK

Listen for all events

The following code below allows an application to listen for all events occurring on the Etherspot SDK.

sdk
.notifications$
.subscribe(
eventData => console.log('Event:', eventData)
);

Sorry, we're not quite done with this section yet - check back again soon!

🆘 Urgently need some help or need to speak to us directly? You can contact us anytime at [email protected] and our support team will usually reply within minutes.