Skip to main content

Wallets & NUBANs

A wallet in Avenue is a record that ties a NUBAN virtual account (provisioned on Nomba) to a specific user in your system, a double-entry ledger, an AI context prompt, and optional automation agents.

What is a NUBAN?

A NUBAN (Nigeria Uniform Bank Account Number) is a 10-digit bank account number. Anyone in Nigeria can transfer money to it via their banking app, USSD, or ATM — using standard bank transfer rails. Avenue provisions NUBANs through Nomba Microfinance Bank on your behalf. When a wallet is created, Avenue calls the Nomba API to generate the NUBAN and stores the association in its database.

Wallet lifecycle

The system_prompt field

Each wallet has a system_prompt — a natural language description of the wallet’s purpose that Avenue feeds to the AI engine when parsing narrations for intent.
A well-crafted system prompt dramatically improves intent parsing accuracy. If a narration says “fees for third term”, the AI knows the context and can produce a confident, labelled output.

Balance calculation

Avenue never stores a balance as a mutable field. A wallet’s balance is always computed at query time by summing its ledger entries:
This guarantees mathematical correctness and provides a complete audit trail.