View Source Aptos.Contract.Coin (Aptos v0.2.4)

Functions for working with 0x1::coin.

Implementations of this module also serve as examples for making use of this library when working with your own smart contracts.

Link to this section Summary

Link to this section Functions

Link to this function

coin_balance(user_addr, coin_id)

View Source
@spec coin_balance(binary(), binary()) ::
  {:ok, non_neg_integer()} | Aptos.Client.Result.err() | {:error, any()}
Link to this function

coin_info(coin_addr, coin_id)

View Source
@spec coin_info(binary(), String.t()) :: Aptos.Client.Result.from_tesla()
Link to this function

coin_store(user_addr, coin_id)

View Source
@spec coin_store(binary(), String.t()) :: Aptos.Client.Result.from_tesla()
Link to this function

transfer(recipient_addr, amount, coin_id)

View Source