On this page

    1. Home
    2. API
    3. API Reference
    4. Account
    5. Create Account Wallet

    Create Account Wallet

    This endpoint allows you to register an external blockchain wallet (e.g., Solana or Polygon) with your URnetwork account. This is required for various billing and reward distribution features.


    POST /account/wallet

    Link a new external blockchain wallet address to your network account.

    Request

    POST /account/wallet

    Headers:

    {
      "Host": "api.bringyour.com",
      "Content-Type": "application/json",
      "Authorization": "Bearer YOUR_JWT_TOKEN"
    }

    Body:

    {
      "blockchain": "SOL",
      "wallet_address": "string",
      "default_token_type": "USDC"
    }

    Fields

    FieldTypeDescription
    blockchainstringThe blockchain network. Supported: SOL, MATIC.
    wallet_addressstringThe public address of your wallet.
    default_token_typestringThe token used for payments. Currently only USDC is supported.

    Response

    200 Success

    Status: 200 OK

    Content-Type: application/json

    {
      "wallet_id": "string"
    }

    Fields

    FieldTypeDescription
    wallet_idstringUnique identifier (UDID) for the newly registered wallet.

    Example

    HTTP Request

    POST /account/wallet HTTP/1.1
    Host: api.bringyour.com
    Content-Type: application/json
    Authorization: Bearer YOUR_JWT_TOKEN
     
    {
      "blockchain": "SOL",
      "wallet_address": "HN7cABqL36vRRXYZ8Q4sG",
      "default_token_type": "USDC"
    }

    Successful HTTP Response

    {
      "wallet_id": "a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11"
    }


    Powered by Sudoc v2.5.0
    Hide table of contents