Custodian funding
Your deposits are swept into your treasury wallet with us and credited to your balance. A funding sends USDT_TRC20 from that wallet to one pinned address of your custodian, or to the address your address service issues for that funding when your custodian gives a new address for each transfer. The address is never a field of a funding: a funding pays the destination that is LIVE when it is accepted.
Not available until we switch it on for you; until then asking for a destination or a funding answers 404. If we switch it off again, a funding not yet sent waits with its amount held: you can still read it and cancel it.
| Pays | Your pinned custodian address, or the address your address service issues |
| From | Your treasury wallet on tron |
| Destination in the request | No, never |
| Signed | Yes, both the address request and every funding |
| Scopes | custodian_destinations:write / :read, custodian_funding:write / :read. Granted only by name |
| Events | chain_payout.*, with funding_id |
Where we have agreed it with you, your chain payouts go only to this address: POST /v1/chain-payouts then answers 403 funding_only and nothing is placed.
The pinned address
POST /v1/custodian-destinations
Authorization: Bearer <your key>
Idempotency-Key: <uuid>
X-Bankcore-Request-Signature: v1,kid=...,ts=...,sig=...
Content-Type: application/json
{"network": "tron", "currency": "USDT_TRC20", "address": "T...", "label": "custodian intake"}
202 with the request REQUESTED. Then:
- We confirm the address with you outside the API and verify it:
VERIFIED. - 24 hours later it is
LIVE, and the addressLIVEbefore it isRETIRED. - Until your custodian's receipt of the first funding is confirmed with you, the address takes one funding at a time, at most 50 USD.
state | |
|---|---|
REQUESTED | Waiting for our confirmation with you |
VERIFIED | Confirmed; LIVE from live_from |
LIVE | Fundings pay it. first_funding_confirmed says whether larger fundings may go |
RETIRED | Never paid again |
kind is ADDRESS (address set) or SERVICE (service_url set, address null): see Address service.
| Refusal | Nothing was recorded |
|---|---|
409 state_conflict, detail.reason request_waiting | Another request is REQUESTED or VERIFIED |
409 state_conflict, detail.reason already_standing | This address is already standing |
422 validation_failed | Not a tron address, or not an address you can name |
GET /v1/custodian-destinations
Every address you asked for, in every state, oldest first.
A funding not yet signed when its address is retired or replaced is not sent: it ends FAILED with the hold returned. Ask again with a new Idempotency-Key; the same reference is free again.
Fundings
POST /v1/custodian-fundings
Authorization: Bearer <your key>
Idempotency-Key: <uuid>
X-Bankcore-Request-Signature: v1,kid=...,ts=...,sig=...
Content-Type: application/json
{
"amount": {"amount": "2500", "currency": "USDT_TRC20"},
"purpose": "TOP_UP",
"reference": "topup-000123",
"customer_external_id": "user-42"
}
| Field | |
|---|---|
amount | What leaves your treasury wallet. USDT_TRC20 only, at most 6 decimals |
purpose | TOP_UP: a card top-up. MANUAL: a transfer your own panel asked for |
reference | Yours: the top-up or panel request id. 1–120 printable ASCII, no space. One live funding per reference |
customer_external_id | Optional. A label kept with the funding; never resolved to a customer |
Unknown fields are refused at every level, an address among them. The request must be signed.
201 means accepted, not sent. The amount is held against your balance at once.
{
"id": "9c4e...",
"status": "PENDING",
"purpose": "TOP_UP",
"reference": "topup-000123",
"customer_external_id": "user-42",
"amount": {"amount": "2500", "currency": "USDT_TRC20"},
"network": "tron",
"destination": {"id": "51ad...", "address": "T..."},
"from_address": "T...",
"operation_id": "3f1c...",
"tx_hash": null,
"failure_reason": null,
"review": null,
"unresolved": false,
"created_at": "2026-11-12T09:02:11Z",
"settled_at": null,
"cancelled_at": null
}
status | |
|---|---|
REVIEW | At or above your approval threshold: held, waiting for our approval. review.state required |
PENDING | Held, not yet signed. Waits while the wallet, its energy or a first-funding rule is not ready |
SENT | Signed and broadcast. Not a payment yet |
CONFIRMED | Confirmed on chain to the pinned address. Not the custodian's credit: its fee, if any, is its own |
FAILED | Never signed, or failed on chain. The hold is returned; the reference is free again |
UNRESOLVED | Not known yet. Never a refusal and never a success: do not ask again |
CANCELLED | You cancelled it before anything was attempted. The hold is returned |
Treat any status you do not recognise as UNRESOLVED.
Limits
| Approval threshold | At or above it a funding is accepted as REVIEW. Agreed with you |
| Per-funding limit | Optional. Above it: 422 amount_above_limit with detail.per_op_usd |
| Daily limit | None |
| First fundings | 50 USD each, one at a time, until the first is confirmed received |
A funding does not count against your chain-payout limits, and a chain payout does not count against a funding.
Two capacities
A funding draws on your available balance with us and on your position in the treasury wallet. Deposits count once they are swept and credited; a deposit that is confirmed but not yet swept does not.
409 funds_short when either does not cover the amount: detail.available, detail.position, detail.requested (position null when it was not read). Nothing is held, and your deposit addresses are marked to be swept now. Send the same request again, with the same Idempotency-Key, once the sweep is credited (GET /v1/float).
Refusals
| Refusal | Nothing was placed or held |
|---|---|
409 funds_short | Above |
409 duplicate_reference | A live funding carries this reference: detail.funding_id |
409 state_conflict, detail.reason funding_off | No funding is agreed for you yet |
409 state_conflict, detail.reason no_live_destination, destination_changed | No LIVE address, or it changed while the request was read. Read your addresses |
409 state_conflict, detail.reason first_funding_limit, first_funding_in_flight | The address takes one funding of at most detail.limit_usd until the first is confirmed received |
422 amount_above_limit | Above your per-funding limit |
422 destination_refused | Your pinned address is on the sanctions list |
422 validation_failed | The body, or an amount we cannot value in USD |
503 network_not_enabled | Your treasury wallet is not switched on. Ours |
503 temporarily_halted | Everything is stopped. Ours |
Reading fundings
GET /v1/custodian-fundings?status=PENDING&purpose=TOP_UP
GET /v1/custodian-fundings/{funding_id}
The list is oldest first; status, purpose and reference filter. Page with after until next_after is null. One funding adds operation_status (the carrying chain payout's) and timeline: requested, review_required, released, sent, confirmed, failed, unresolved, cancelled, each with at. Another tenant's id is 404.
A funding is a chain payout on your books: operation_id is the same id in GET /v1/chain-payouts/{payout_id}, GET /v1/float/statement and GET /v1/register.
Cancelling
POST /v1/custodian-fundings/{funding_id}/cancel
Before anything was attempted, in REVIEW or PENDING: CANCELLED, the hold returned, chain_payout.failed sent. Once an attempt exists: 409 state_conflict, detail.reason attempted. While its screening holds it for our compliance team: 409 state_conflict, detail.reason held_for_screening. Asked again, the funding as it stands. No body and no Idempotency-Key. Needs custodian_funding:write.
Retrying safely
- One
Idempotency-Keyper funding: the same key and body answer the first answer again, a different body422 idempotency_key_reused. See Idempotency. - One live funding per
reference, whatever the key: a second is409 duplicate_reference. AFAILEDorCANCELLEDfunding frees its reference. - Mint a
MANUALreference when your panel's form opens, not on each click.
Events
The funding's operation sends chain_payout.settled, chain_payout.failed and chain_payout.unresolved. data carries funding_id and your reference with the usual payout fields. See Events.
Address service
For a custodian that gives a new deposit address for each transfer. Your LIVE destination is then your service's base URL, not an address. We set it up with you: we record the URL, confirm it with you outside the API and verify it; it is LIVE 24 hours later, as an address is. It cannot be set or changed through the API.
A funding request does not change: same body, no address field.
What we call
Before anything is held, for each funding:
POST {service_url}/api/v1/bankcore/funding-address
Content-Type: application/json
X-Bankcore-Timestamp: 1763021700
X-Bankcore-Signature: v1=5f2c...
{"request_id":"bcf_3e7c0a...","amount":"2500"}
| Signature | As our webhooks: v1= hex HMAC-SHA256 of <timestamp>.<raw body> with your webhook secret. A GET signs an empty body |
request_id | bcf_ and 40 hex characters, one per funding Idempotency-Key. A retry with the same key asks the same request_id |
amount | The funding's amount as a decimal string. At most 1,000,000: above it 422 amount_above_limit, nothing asked |
| Timeout | 10 seconds for the whole call |
Answer 200 or 201, signed, with:
| Field | Must be |
|---|---|
request_id | Ours |
amount | The funding's amount, as a decimal string |
network / asset | TRON / USDT |
status | open |
tx_hash | null |
reference | 1–120 printable ASCII |
address | A TRON address, not one of ours or another client's destination, not on the sanctions list |
expires_at | ISO 8601 with an offset, at least 30 minutes and at most 12 hours ahead |
At most 16 KB. Sign every answer as we sign the call: X-Bankcore-Timestamp (Unix seconds, within 5 minutes of ours) and X-Bankcore-Signature v1= hex HMAC-SHA256 of <timestamp>.<raw answer body> with the same secret. An unsigned issue answer is refused (answer_unsigned); an unsigned /sent answer is tried again; an unsigned status is not read.
A funding refused after we asked (funds_short, duplicate_reference, a limit) leaves that address unused; the same Idempotency-Key asks the same request_id again.
We pay exactly that address. A funding not signed 10 minutes before expires_at is never sent: it ends FAILED with failure_reason ADDRESS_EXPIRED, the hold returned and chain_payout.failed sent. A funding still in REVIEW at that point is not released and ends the same way. Send a new funding with a new Idempotency-Key.
After it settles
Once the funding is CONFIRMED on chain we report it:
POST {service_url}/api/v1/bankcore/funding-address/sent
{"request_id":"bcf_3e7c0a...","tx_hash":"<64 hex>"}
200 or 201 records it. 400, 404, 409 or 422 stop the reports and we contact you. Anything else, or no answer, is tried again later, for about a day.
Then, also after a report you refused, we read GET {service_url}/api/v1/bankcore/funding-address?request_id=... every 10 minutes for up to 3 days, until it says arrived. This is information only and moves nothing.
What you read
A funding to an address service carries address_service, null otherwise:
"address_service": {
"address": "T...",
"expires_at": "2026-11-13T08:15:00Z",
"request_id": "bcf_3e7c0a...",
"reference": "TOP-7K2QX9MD",
"reported_at": null,
"arrived_at": null
}
destination.address is the same issued address. The timeline adds arrived when your service said so.
Refusals
| Refusal | Nothing was held |
|---|---|
503 funding_address_unavailable | Your service did not answer, timed out, or answered 5xx or 429. Send the same request again, with the same Idempotency-Key: you get the same address. detail.reason, detail.request_id |
409 funding_address_refused | Your service's answer failed a check. detail.reason: malformed, request_id, amount, network, asset, status, tx_hash, reference, address_invalid, address_ours, expires_at, expires_too_soon, expires_too_late, answer_unsigned, or http_<status> with detail.code when your error had one. The same key gets the same answer: fix the service, then use a new Idempotency-Key |
409 state_conflict, detail.reason address_service_off | Your service answered 403 disabled |
409 state_conflict, detail.reason address_request_reused | Your service already issued this request_id for another amount: this Idempotency-Key was used before with another amount. With detail.funding_id: a funding was already placed for this request_id |
409 state_conflict, detail.reason address_request_closed | Your service closed this request_id |
409 state_conflict, detail.reason address_service_unconfigured | No webhook secret to sign with. Ours |
422 destination_refused | The issued address is on the sanctions list |