Register a coin

Dapp users will need to register a coin or token to appear on Fletch wallet. This is done to indicate the balance a user holds on a token or coin.

The code below can be used to register a coin to Fletch wallet:

var payload = {
    type: "entry_function_payload",
    function: "0x1::managed_coin::register",
    type_arguments: ["0x1::aptos_coin::AptosCoin"],
    arguments: [],

try {
    let result = window.fletch.signAndSubmitTransaction(payload)
} catch (error) {


Last updated