Session

You'll need to create a session to process any of the delayed transactions. In this guide, we'll look at how session works.

Create Session

You use one of our official SDKs to create a session, you cat fetch your API Key from the Lydian dashboard under API settings, and the client library will take care of the rest. All the client libraries uses API Key behind the scenes.

POST
/session
import {Lydian} from "@lydian/lydian-node";

const client = new Lydian({
    walletAddress: {MERCHANT_WALLET_ADDRESS},
    privateKey: {MERCHANT_WALLET_PRIVATE_KEY},
    serverUri: {SERVER_BASE_URL},
});

await client.createSession({
    toUUID: {MERCHANT_UUID},
    referenceNumber: {REFERENCE_NUMBER},
});