On this page

    1. Home
    2. API
    3. API Reference
    4. Wallet
    5. Wallet Transfer Out

    Wallet Transfer Out

    The circle-transfer-out endpoint allows you to withdraw USDC from your URnetwork account's Circle-managed wallet to an external blockchain address (e.g., a personal Solana or Polygon wallet). This process initiates a Circle "challenge" that must be completed using the Circle SDK.


    POST /wallet/circle-transfer-out

    Start the process of transferring USDC to an external blockchain address.

    Request

    POST /wallet/circle-transfer-out

    Headers:

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

    Body:

    {
      "to_address": "string",
      "amount_usdc_nano_cents": 0,
      "terms": true
    }

    Fields

    FieldTypeDescription
    to_addressstringRequired. The destination blockchain address for the USDC.
    amount_usdc_nano_centsintegerRequired. The amount to transfer in USDC nano-cents (1/10^11 USD).
    termsbooleanRequired. Must be true to indicate user consent to the transfer terms.

    Response

    200 Success

    Status: 200 OK

    Content-Type: application/json

    A successful initiation returns the user_token and challenge_id required by the Circle SDK to perform the on-chain transaction.

    {
      "user_token": {
        "user_token": "string",
        "encryption_key": "string"
      },
      "challenge_id": "string",
      "error": {
        "message": "string"
      }
    }

    Fields

    FieldTypeDescription
    user_token.user_tokenstringThe user session token for the Circle SDK.
    user_token.encryption_keystringThe encryption key for the Circle session.
    challenge_idstringThe unique ID of the transfer challenge to be solved in the SDK.
    errorobjectDetails on failure (can be null).

    Example

    HTTP Request

    POST /wallet/circle-transfer-out HTTP/1.1
    Host: api.bringyour.com
    Content-Type: application/json
    Authorization: Bearer YOUR_JWT_TOKEN
     
    {
      "to_address": "7xKX....xyz",
      "amount_usdc_nano_cents": 10000000000,
      "terms": true
    }

    Successful HTTP Response

    {
      "user_token": {
        "user_token": "eyJraWQiOiI...",
        "encryption_key": "MIIBIjANBg..."
      },
      "challenge_id": "ec82938a-44af-4fac-88bc-0eaabbcc0000",
      "error": null
    }


    Powered by Sudoc v2.5.0
    Hide table of contents