Quickstart

This guide will get you all set up and ready to use the Lydian Client SDK. We'll cover how to get started using one of our SDK clients and how to make your first API request. We'll also look at where to go next to find all the information you need to take full advantage of our powerful SDK Clients.

Choose your client

Before making your first API request, you need to pick which API client you will use. Lydian offers clients for NodeJS, Go, PHP, and .NET. In the following example, you can see how to install each client.

# Make a curl request to the API Endpoints

Making your first API request

After picking your preferred client, you are ready to make your first call to the Lydian API. Below, you can see how to send a POST request to the Session endpoint to create a new session.

POST
/transaction
curl --location '{BASE_URL}/transaction' \
--header 'X-Publishable-Key: {PUBLIC_KEY}' \
--header 'Content-Type: application/json' \
--data '{
    "descriptor": "{OPTIONAL_DESCRIPTOR}",
    "referenceNumber": "{OPTIONAL_REFERENCE_NUMBER}",
    "amount": {AMOUNT_IN_FLOAT},
    "amountCurrency": "{CURRENCY_CODE}",
    "asset": "{ASSET}",
    "network": "{CRYPTO_NETWORK}"
}'

What's next?

Great, you're now set up with an API client and have made your first request to the API. Here are a few links that might be handy as you venture further into the Protocol API: