Accounts
An account is a financial container tied to a ledger. Every account has an address (URN), a type (medium), a state, and a balance β all inherited from the ledger it belongs to.
What is an Account?
Which account types exist?
Each account type has its own client in the SDK: client.accounts.virtual, client.accounts.card, client.accounts.bancolombia, and so on.
What is a Medium?
What is an Asset and how are amounts represented?
Assets use the format SYMBOL/DECIMALS. Amounts are always passed as strings β never as floats β to avoid floating-point precision issues.
Always work in the smallest unit (like "cents" but for each asset's precision). Convert for display, but store and send as strings.
What account states exist?
Every account goes through a lifecycle:
Some operations (like card charges or transfers) will fail if the account is not active. Always check state before initiating financial operations, or use webhooks to track state changes.
What is a Transfer?
Transfers work between any account types β card to Bancolombia, virtual to Polygon, etc. The transfer routes through the shared ledger if both accounts share one.
What's next
β Swap β converting assets and working with payment rails