Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultAPIVersionPrefix = "/api/v1" NativeSymbol = "BNB" GoSdkSource = 2 )
Variables ¶
View Source
var Network = ProdNetwork
Functions ¶
func GetFromBech32 ¶
GetFromBech32 to decode a bytestring from a bech32-encoded string
Types ¶
type AccAddress ¶
type AccAddress []byte
AccAddress a wrapper around bytes meant to represent an account address. When marshaled to a string or JSON, it uses Bech32.
func AccAddressFromBech32 ¶
func AccAddressFromBech32(address string) (addr AccAddress, err error)
AccAddressFromBech32 to create an AccAddress from a bech32 string
func AccAddressFromHex ¶
func AccAddressFromHex(address string) (addr AccAddress, err error)
AccAddressFromHex to create an AccAddress from a hex string
func (AccAddress) Bytes ¶
func (bz AccAddress) Bytes() []byte
func (AccAddress) Marshal ¶
func (bz AccAddress) Marshal() ([]byte, error)
Marshal needed for protobuf compatibility
func (AccAddress) MarshalJSON ¶
func (bz AccAddress) MarshalJSON() ([]byte, error)
MarshalJSON to Marshals to JSON using Bech32
func (*AccAddress) Unmarshal ¶
func (bz *AccAddress) Unmarshal(data []byte) error
Unmarshal needed for protobuf compatibility
func (*AccAddress) UnmarshalJSON ¶
func (bz *AccAddress) UnmarshalJSON(data []byte) error
UnmarshalJSON to Unmarshal from JSON assuming Bech32 encoding
type ChainNetwork ¶
type ChainNetwork uint8
const ( TestNetwork ChainNetwork = iota ProdNetwork )
func (ChainNetwork) Bech32Prefixes ¶
func (this ChainNetwork) Bech32Prefixes() string
type Coins ¶
type Coins []Coin
Coins def
func (Coins) IsNotNegative ¶
func (Coins) IsPositive ¶
Click to show internal directories.
Click to hide internal directories.