For the complete documentation index, see llms.txt. This page is also available as Markdown.

Fiat Deposit from Bank

This example shows how to obtain bank deposit information from an Anchor that supports inbound payments that are minted on Keeta. It assumes KYC has already been completed and shared with the Anchor. See the two KYC guides Add KYC Certificate and Share KYC Attributes for more details on handling KYC.

To run the example on the main network, the following changes are needed.

  • Change network from test to main

  • Use the main network Keeta USD Token - keeta_amnkge74xitii5dsobstldatv3irmyimujfjotftx7plaaaseam4bntb7wnna

1

Setup Account and Anchor Client

2

Establish Source Location and Destination

3

Identify Provider with Anchor Resolver

4

Request Deposit Information

5

Make an ACH Payment and Check Balance

There are multiple ways to check if an account has changed. Simplest is to query the account balance for a given token.

Alternatively, can poll the account history to identify changes affecting the account

Lastly, the UserClient has a change callback that can be implemented to connect via websocket and listen for changes. It also uses a periodic polling fallback in case the websocket disconnects.

Full Code Example

https://github.com/KeetaNetwork/keetanet-examples/blob/main/src/anchor/asset-movement-fiat-deposit-from-bank.ts

Last updated