sdk

package
v0.0.0-...-86f5c60 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithEndpoint

func WithEndpoint(endpoint string)

Types

type AccountStakeInfo

type AccountStakeInfo struct {
	AccountID       string `json:"account_id"`
	UnstakedBalance string `json:"unstaked_balance"`
	StakedBalance   string `json:"staked_balance"`
	CanWithdraw     bool   `json:"can_withdraw"`
}

func GetAccounts

func GetAccounts(ctx context.Context, validatorID string, from, limit int) ([]AccountStakeInfo, error)

type GetAccountsReq

type GetAccountsReq struct {
	RequestType string `json:"request_type"`
	AccountID   string `json:"account_id"`
	MethodName  string `json:"method_name"`
	ArgsBase64  string `json:"args_base64"`
	Finality    string `json:"finality"`
}

type GetAccountsResult

type GetAccountsResult struct {
	Result      []byte `json:"result"`
	BlockHeight int    `json:"block_height"`
	BlockHash   string `json:"block_hash"`
}

type Page

type Page struct {
	FromIndex int `json:"from_index"`
	Limit     int `json:"limit"`
}

Jump to

Keyboard shortcuts

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