/authorize

Client Library

import { BluefinClient, Networks } from "@bluefin-exchange/bluefin-v2-client";

async function main() {
  const ed25519Wallet =
    "trigger swim reunion gate hen black real deer light nature trial dust";
  const client = new BluefinClient(
    true,
    Networks.TESTNET_SUI,
    ed25519Wallet,
    "ED25519"
  );
  await client.init();

  const authToken = await client.userOnBoarding();
  console.log("User Auth Token:", authToken);
}

main().then().catch(console.error);
from config import TEST_ACCT_KEY, TEST_NETWORK
from pprint import pprint
import asyncio
from bluefin_v2_client import (
    BluefinClient,
    Networks,
)

async def main():
    client = BluefinClient(True, Networks[TEST_NETWORK], TEST_ACCT_KEY)
    await client.init(True)

    authToken = await client.onboard_user()
    pprint("User Auth Token:")
    pprint(authToken)


if __name__ == "__main__":
    loop = asyncio.new_event_loop()
    loop.run_until_complete(main())
    loop.close()

HTTPs

Alternatively, if you have created the onboarding signature (see Onboarding Signature & API Authorization), call the POST /authorize endpoint using the integrated editor on the right or locally from any language supporting HTTPs network calls.

Request & Response

Language
Click Try It! to start a request and see the response here!