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

Fiat Withdraw to Bank

This example shows how to initiate a withdraw/payment request from an Anchor that supports outbound payments to a bank. It assumes KYC has already been completed and shared with the Anchor and that the account holds USD that can be sent. 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

Identify Providers for Transfer

The asset movement client can search the Anchor Resolver metadata to identify providers that can handle the source and destination of the transfer.

3

Construct the Bank Recipient

The Anchor SDK provides specific types for different bank deposits as BankAccountAddressResolved. For US Bank accounts specifically it would use the type UsBankAccountResolved

4

Initiate Transfer

Initiating a transfer with the anchor begins the process to submit the payment. The Anchor will return a specific ID to use as part of the transfer and what account to send the payment too. These are returned as "instructions" that can be used to construct the Keeta block on the network.

5

Send the Payment to the Anchor

Use the Keeta Client SDK to construct a transaction on Keeta that sends the funds to the Anchor to process the outbound payment.

6

Poll the Anchor for Transfer Status

Once the payment has been submitted, the transfer status can be checked periodically until the transfer is complete.

Full Code Example

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

Last updated