helpers

package
v0.0.0-...-46756ee Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2026 License: MIT Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFungibleAssetBalance

func GetFungibleAssetBalance(
	client aptos.AptosRpcClient,
	account aptos.AccountAddress,
	faMetadataAddress aptos.AccountAddress,
) (uint64, error)

GetFungibleAssetBalance queries the given account's balance of the fungible asset in its primary fungible store.

func GetFungibleAssetSupply

func GetFungibleAssetSupply(
	client aptos.AptosRpcClient,
	faMetadataAddress aptos.AccountAddress,
) (uint64, error)

func GetObjectOwner

func GetObjectOwner(
	client aptos.AptosRpcClient,
	objectAddress aptos.AccountAddress,
) (aptos.AccountAddress, error)

Types

type FungibleAssetMetadata

type FungibleAssetMetadata struct {
	Name       string
	Symbol     string
	Decimals   uint8
	IconURI    string
	ProjectURI string
}

func GetFungibleAssetMetadata

func GetFungibleAssetMetadata(
	client aptos.AptosRpcClient,
	faMetadataAddress aptos.AccountAddress,
) (FungibleAssetMetadata, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL