associated_token_account

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssociatedTokenAccountDataType

type AssociatedTokenAccountDataType struct {
	Parsed struct {
		Info struct {
			IsNative          bool   `json:"isNative"`
			Mint              string `json:"mint"`
			Owner             string `json:"owner"`
			RentExemptReserve struct {
				Amount         string  `json:"amount"`
				Decimals       uint64  `json:"decimals"`
				UIAmount       float64 `json:"uiAmount"`
				UIAmountString string  `json:"uiAmountString"`
			} `json:"rentExemptReserve"`
			State       string `json:"state"`
			TokenAmount struct {
				Amount         string  `json:"amount"`
				Decimals       uint64  `json:"decimals"`
				UIAmount       float64 `json:"uiAmount"`
				UIAmountString string  `json:"uiAmountString"`
			} `json:"tokenAmount"`
		} `json:"info"`
		Type string `json:"type"`
	} `json:"parsed"`
	Program string `json:"program"`
	Space   uint64 `json:"space"`
}

func GetAssociatedTokenAccountData

func GetAssociatedTokenAccountData(
	rpcClient *rpc.Client,
	associatedTokenAccount solana.PublicKey,
) (*AssociatedTokenAccountDataType, error)

func GetAssociatedTokenAccountDatas added in v0.1.1

func GetAssociatedTokenAccountDatas(
	rpcClient *rpc.Client,
	accounts []solana.PublicKey,
) ([]*AssociatedTokenAccountDataType, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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