trc20

package
v0.16.2 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ABITRC20 = `` /* 4470-byte string literal not displayed */

Variables

This section is empty.

Functions

func ConvertToBytes

func ConvertToBytes(address string) []byte

func ConvertToHex

func ConvertToHex(address string) string

func PackPayloadForTrc20

func PackPayloadForTrc20(function string, params []byte) (string, error)

Types

type CallTrc20In

type CallTrc20In struct {
	Address   string `json:"address,omitempty"`
	Owner     string `json:"owner,omitempty"`
	Spender   string `json:"spender,omitempty"`
	From      string `json:"from,omitempty"`
	To        string `json:"to,omitempty"`
	Recipient string `json:"recipient,omitempty"`
	Amount    string `json:"amount,omitempty"`
}

for call contract

type UnpackTrc20

type UnpackTrc20 struct {
	Function string
	CallTrc20In
}

for call contract

func UnpackPayloadForTrc20

func UnpackPayloadForTrc20(payload string) (*UnpackTrc20, error)

Jump to

Keyboard shortcuts

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