Getting Started
This guide walks you through registering a blockchain wallet for an existing account using the Rime API. You’ll make your first successful API call and understand the wallet registration process.Currently, only Polygon blockchain is supported. Additional chains will be
added in future releases.
Prerequisites
Before registering a wallet, ensure you have:- API access credentials -
client_id
andclient_secret
from your onboarding - Authentication token - Follow our authentication guide to get your access token
- Existing account - An account ID from a previously created account
- Blockchain wallet details - The wallet address you want to register for the account
Wallet Registration Requirements
Wallet registration has specific field requirements: Required fields:- Account ID (
account_id
) - ID of the associated account - Blockchain network (
chain
) - Currently onlypolygon
is supported - Wallet address (
wallet_address
) - Valid blockchain address for the specified chain
- Set to primary wallet (
is_primary
) - Set totrue
to make this the primary wallet for the account
Only one wallet per account can be designated as primary. Setting a new wallet
as primary will automatically remove the primary status from other wallets.
Step-by-Step Implementation
Step 1: Prepare wallet registration data
Structure your wallet registration data with the required blockchain information:Step 2: Register the wallet
Make the API call to register the wallet for your account:Step 3: Handle the response
A successful wallet registration returns a201 Created
status with the wallet details:
Digital Asset Custody
Reference the wallet registration ID in future orders you make for an account.
The assets bought in an order will be transferred as tokens to this registered
wallet address.
Troubleshooting
400 Bad Request - Invalid Parameters
400 Bad Request - Invalid Parameters
Cause: Missing required fields or invalid data formatSolution: Ensure all required fields are provided with valid data types
404 Not Found - Account Not Found
404 Not Found - Account Not Found
Cause: The specified account ID does not existSolution: Verify the account ID exists by checking your account list
422 Unprocessable Entity - Duplicate Wallet
422 Unprocessable Entity - Duplicate Wallet
Cause: Wallet address already registered for this accountSolution: Each wallet address can only be registered once per account
Next Steps
After registering a wallet, you can:- List registered wallets - View all wallets for the account
- Buy shares - Start trading using the registered wallet
- Get portfolio information - View holdings across all wallets