account

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: LGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	Address                 string             `json:"address"`
	Type                    string             `json:"type"`
	Name                    string             `json:"name"`
	ID                      string             `json:"id"`
	Balance                 int64              `json:"balance"`
	Allowance               int64              `json:"allowance"`
	LastWithdraw            int64              `json:"lastWithdraw"`
	IsWitness               bool               `json:"isWitness"`
	IsElected               bool               `json:"isElected"`
	Assets                  map[string]int64   `json:"assetList"`
	TronPower               int64              `json:"tronPower"`
	TronPowerUsed           int64              `json:"tronPowerUsed"`
	FrozenBalance           int64              `json:"frozenBalance"`
	FrozenResources         []FrozenResource   `json:"frozenList"`
	FrozenBalanceV2         int64              `json:"frozenBalanceV2"`
	FrozenResourcesV2       []FrozenResource   `json:"frozenListV2"`
	UnfrozenResource        []UnfrozenResource `json:"unfrozenList"`
	Votes                   map[string]int64   `json:"voteList"`
	BWTotal                 int64              `json:"bandwidthTotal"`
	BWUsed                  int64              `json:"bandwidthUsed"`
	EnergyTotal             int64              `json:"energyTotal"`
	EnergyUsed              int64              `json:"energyUsed"`
	Rewards                 int64              `json:"rewards"`
	WithdrawableBalance     int64              `json:"withdrawableBalance"`
	UnfreezeLeft            int64              `json:"countUnfreezeLeft"`
	MaxCanDelegateBandwidth int64              `json:"maxCanDelegateBandwidth"`
	MaxCanDelegateEnergy    int64              `json:"maxCanDelegateEnergy"`
}

Account detailed view

type FrozenResource

type FrozenResource struct {
	Type       core.ResourceCode
	Amount     int64
	DelegateTo string
	Expire     int64
}

FrozenResource by account

type UnfrozenResource

type UnfrozenResource struct {
	Type   core.ResourceCode
	Amount int64
	Expire int64
}

UnfrozenResource by account

Jump to

Keyboard shortcuts

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