suiapi

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DryRunTransactionBlock added in v0.0.4

func DryRunTransactionBlock[RES any](ctx context.Context, serverUrl string, txBytes string) (*RES, error)

func ExecuteTransactionBlock added in v0.0.4

func ExecuteTransactionBlock[RES any](ctx context.Context, serverUrl string, txBytes string, signatures string) (*RES, error)

Types

type CoinMetadata added in v0.0.5

type CoinMetadata struct {
	Decimals    int    `json:"decimals"`
	Description string `json:"description"`
	IconUrl     string `json:"iconUrl"`
	Id          string `json:"id"`
	Name        string `json:"name"`
	Symbol      string `json:"symbol"`
}

type CoinType added in v0.0.4

type CoinType struct {
	Balance             string `json:"balance"`
	CoinObjectId        string `json:"coinObjectId"`
	CoinType            string `json:"coinType"`
	Digest              string `json:"digest"`
	PreviousTransaction string `json:"previousTransaction"`
	Version             string `json:"version"`
}

func GetSuiCoinsInTopPage added in v0.0.8

func GetSuiCoinsInTopPage(ctx context.Context, serverUrl string, address string) ([]*CoinType, error)

type DigestMessage added in v0.0.4

type DigestMessage struct {
	Digest string `json:"digest"`
}

type EffectsStatusStatusMessage added in v0.0.4

type EffectsStatusStatusMessage struct {
	Effects struct {
		Status struct {
			Status string `json:"status"`
		} `json:"status"`
	} `json:"effects"`
}

type TxBytesMessage

type TxBytesMessage struct {
	TxBytes string `json:"txBytes"`
}

type ValueMessage added in v0.0.8

type ValueMessage struct {
	Value string `json:"value"`
}

Jump to

Keyboard shortcuts

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