common

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LamportsToSol

func LamportsToSol(lamports uint64) float64

LamportsToSol Approximately convert fractional native tokens (lamports) into native tokens (SOL)

func LamportsToString

func LamportsToString(lamports uint64) string

func MustGetAssociatedTokenAddress

func MustGetAssociatedTokenAddress(owner, mint web3.PublicKey, programId web3.PublicKey) web3.PublicKey

func SolToLamports

func SolToLamports(sol float64) uint64

SolToLamports Approximately convert native tokens (SOL) into fractional native tokens (lamports)

Types

type IrysProvider

type IrysProvider struct {
	// contains filtered or unexported fields
}

func NewIrysProvider

func NewIrysProvider(endpoint irys.Endpoint, gateway string) *IrysProvider

func (IrysProvider) MetadataURI

func (i IrysProvider) MetadataURI(ctx context.Context, connection *web3.Connection, payer web3.Signer, basic web3kit.BasicMetadata) (string, error)

Jump to

Keyboard shortcuts

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