SDK Events

The currently available events are:

OnOpenStateChange

Signals to the game that the overlay was either opened or closed. This is useful if you want to pause the game while the overlay is open.

OnCheckoutResult

triangle-exclamation

Notifies the game when a checkout has either been completed successfully or failed. This would normally be sent by the overlay after the game has initiated a Checkout() request.

OnGetWalletResult

Notifies the game of a result to the GetWallet action. This event delegate has the following signature:

public delegate void OnGetWalletResultDelegate(
    string status, string ethAddress, string solAddress, string eosAddress
);

The following status values can be returned:

Status
Description

SUCCESS

Successful execution

USER_REQUEST_DENIED

SDK has been initialized with an invalid user email.

SOMETHING_WENT_WRONG

An system error occurred. Please get in touch with us if you continue seeing this error.

OnSignTypedDataResult

Notifies the game of a result to the SignTypedData action. This event's delegate has the following signature:

The following status values can be returned:

Status
Description

SUCCESS

Successful execution

USER_REQUEST_DENIED

SDK has been initialized with an invalid user email.

SOMETHING_WENT_WRONG

An system error occurred. Please get in touch with us if you continue seeing this error.

Last updated