Skip to content

Instantly share code, notes, and snippets.

View drichar's full-sized avatar

Doug Richar drichar

View GitHub Profile
@drichar
drichar / NFD-vaults-example.md
Created August 5, 2023 16:53
An example of how to use the NFDomains API to send assets to and from an NFD's vault

NFDomains Vault Example

In this guide we will provide an example of how to use the NFDomains API to send assets to and from an NFD's vault, as a reference for adding Vault support in your own application.

Overview

A vault is an Algorand account controlled by an NFD's smart contract that can automatically opt-in to assets it receives.

Vaults are locked by default, meaning only the NFD's owner can send assets to it. When the owner unlocks the vault, anyone can send assets to it. The owner can lock or unlock the vault at any time.