get_balance
Returns the current balance of a specific asset held in your Pay3 smart account for the active session.
Parameters
string
required
The asset code to query. Must be one of:
USDC, XLM.The asset code is case-insensitive — usdc, USDC, and Usdc all work.Example AI prompts
- “What is my USDC balance?”
- “How much XLM do I have in my Pay3 wallet?”
- “Check my balance before I send a payment.”
Example response
Response fields
string
The normalised asset code you queried, e.g.
"USDC".string
The current balance as a decimal string, e.g.
"245.50".string
The ID of the AI session that made the request.
string
The Pay3 smart account ID associated with this session.
string
Where the balance was read from.
"soroban_vault" for USDC via the on-chain vault contract; "horizon" for XLM and other assets queried directly from the Stellar network.transfer
Initiates a payment from your Pay3 smart account to a recipient. Before the transaction is submitted to Stellar, it passes through the Policy Engine and resolves the recipient address. Depending on your session’s policy configuration, the transfer is either auto-executed, queued for your manual approval, or rejected.
Parameters
string
required
The destination for the payment. Accepts:
- A full Stellar public key (
G...) - A verified contact name or alias saved in your Pay3 account (e.g.
"Alice")
string
required
The asset to send. Must be one of:
USDC, XLM.string
required
The amount to send, expressed as a decimal string. Examples:
"5", "10.00", "0.50".string
required
A stable, unique key for this payment intent (8–128 characters). If you retry the same transfer, reuse the exact same key — Pay3 will recognise the duplicate and return the original result instead of submitting a second transaction. Generate a UUID per payment attempt, or use a meaningful identifier like
"order-789-payment-1".Execution outcomes
Everytransfer call produces one of three outcomes:
AUTO_EXECUTE
The transfer passed all policy checks and was submitted to Stellar immediately. The response includes the Stellar transaction hash.
PENDING_APPROVAL
The transfer exceeded a threshold in your policy (e.g. single-transaction limit) and is queued for your manual approval in the Pay3 Dashboard. You have 2 minutes to approve or reject it.
REJECTED
The transfer violated a policy rule — daily budget exceeded, asset not allowed, session expired, etc. The response explains which rule was violated.
Example AI prompts
- “Send 5 USDC to Alice.”
- “Pay Bob 0.50 XLM for the API call.”
- “Transfer 100 USDC to GABCDE…XYZ.”
- “Pay the supplier 200 USDC. Use idempotency key order-1234.”
- “Send 50 XLM to my contact named Dev Fund.”
Example responses
- Success (AUTO_EXECUTE)
- Pending Approval
- Rejected
Response fields
string
One of
SUCCESS, PENDING_APPROVAL, or REJECTED.string
Pay3’s internal transaction ID. Use this to look up the transaction in the Dashboard.
string
The Stellar network transaction hash. Present only when
status is SUCCESS. Use this to verify the transaction on a Stellar explorer.string
The amount that was sent, as a decimal string. Present on success.
string
The asset that was sent. Present on success.
string
The resolved Stellar address of the recipient. Present on success.
string
A human-readable message. Present when
status is PENDING_APPROVAL.string
Explanation of which policy rule blocked the transfer. Present when
status is REJECTED.get_transaction_history
Returns the most recent transactions recorded for the current AI session, sorted newest-first.
get_transaction_history only returns transactions made within the current session. Transactions from other sessions — including previous sessions on the same account — are not included. To view your full cross-session history, open the Pay3 Dashboard.Parameters
number
The maximum number of transactions to return. Must be between
1 and 50. Defaults to 20 if omitted.Example AI prompts
- “Show me my last 10 transactions.”
- “What payments have I made today?”
- “Did my transfer to Alice go through?”
Example response
Response fields
array
An array of transaction objects, sorted newest-first.