Laso Finance · Auth

by Laso Finance

GETBaseSolana

$0.001

per call · USD Coin on Base

Get a Firebase ID token for authenticating with the callable APIs

Endpoint

GET https://laso.finance/auth

46

Calls / 30d

14

Unique payers / 30d

Sep 9

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://laso.finance/auth", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://laso.finance/auth" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "auth": {
    "expires_in": "3600",
    "id_token": "eyJ...",
    "refresh_token": "AMf..."
  },
  "callable_base_url": "https://laso.finance",
  "user_id": "0xabc..."
}

Payment details

Pay to0x3291e96b3bff7ed56e3ca8364273c5b4654b2b37
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana
Schemesexact

Is this your API?

Pin it to the top of Onchain Data and the homepage with a featured placement.

Get featured →

More from Laso Finance & similar services