bsc

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Bep20ABI = Bep20MetaData.ABI

Bep20ABI is the input ABI used to generate the binding from. Deprecated: Use Bep20MetaData.ABI instead.

View Source
var Bep20MetaData = &bind.MetaData{
	ABI: "[{\"constant\":true,\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"name\":\"\",\"type\":\"string\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_spender\",\"type\":\"address\"},{\"name\":\"_value\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_from\",\"type\":\"address\"},{\"name\":\"_to\",\"type\":\"address\"},{\"name\":\"_value\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"name\":\"\",\"type\":\"uint8\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_owner\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"name\":\"balance\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"name\":\"\",\"type\":\"string\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_to\",\"type\":\"address\"},{\"name\":\"_value\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_owner\",\"type\":\"address\"},{\"name\":\"_spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"fallback\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"}]",
}

Bep20MetaData contains all meta data concerning the Bep20 contract.

Functions

func GetAddressFromPrivateKey added in v0.2.0

func GetAddressFromPrivateKey(privateKey *secp256k1.PrivateKey) string

@title 获取钱包地址 @param privateKey *secp256k1.PrivateKey 私钥 @return _ string 地址

Types

type Account

type Account struct {
	// contains filtered or unexported fields
}

func NewAccountFromMnemonic

func NewAccountFromMnemonic(mnemonic string, password string, index int64) (*Account, error)

@title 创建账户 @param mnemonic string 助记词 @param password string 密码 @param index int64 账户索引 @return _ *Account 账户 @return _ error 异常信息

func NewAccountFromSeed

func NewAccountFromSeed(seed []byte, index int64) (*Account, error)

@title 创建账户 @param seed []byte 种子 @param index int64 账户索引 @return _ *Account 账户 @return _ error 异常信息

func (*Account) Chain

func (Self *Account) Chain() common.Chain

@title 链类型 @param Self *Account @return _ common.Chain 链类型

func (*Account) GetAddress

func (Self *Account) GetAddress() (string, error)

@title 获取钱包地址 @param Self *Account @return _ string 地址 @return _ error 异常信息

func (*Account) GetPrivateKey

func (Self *Account) GetPrivateKey() (*secp256k1.PrivateKey, error)

@title 获取私钥 @param Self *Account @return _ *secp256k1.PrivateKey 私钥 @return _ error 异常信息

type Bep20

type Bep20 struct {
	Bep20Caller     // Read-only binding to the contract
	Bep20Transactor // Write-only binding to the contract
	Bep20Filterer   // Log filterer for contract events
}

Bep20 is an auto generated Go binding around an Ethereum contract.

func NewBep20

func NewBep20(address common.Address, backend bind.ContractBackend) (*Bep20, error)

NewBep20 creates a new instance of Bep20, bound to a specific deployed contract.

type Bep20Approval

type Bep20Approval struct {
	Owner   common.Address
	Spender common.Address
	Value   *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

Bep20Approval represents a Approval event raised by the Bep20 contract.

type Bep20ApprovalIterator

type Bep20ApprovalIterator struct {
	Event *Bep20Approval // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

Bep20ApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the Bep20 contract.

func (*Bep20ApprovalIterator) Close

func (it *Bep20ApprovalIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*Bep20ApprovalIterator) Error

func (it *Bep20ApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*Bep20ApprovalIterator) Next

func (it *Bep20ApprovalIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type Bep20Caller

type Bep20Caller struct {
	// contains filtered or unexported fields
}

Bep20Caller is an auto generated read-only Go binding around an Ethereum contract.

func NewBep20Caller

func NewBep20Caller(address common.Address, caller bind.ContractCaller) (*Bep20Caller, error)

NewBep20Caller creates a new read-only instance of Bep20, bound to a specific deployed contract.

func (*Bep20Caller) Allowance

func (_Bep20 *Bep20Caller) Allowance(opts *bind.CallOpts, _owner common.Address, _spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address _owner, address _spender) view returns(uint256)

func (*Bep20Caller) BalanceOf

func (_Bep20 *Bep20Caller) BalanceOf(opts *bind.CallOpts, _owner common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address _owner) view returns(uint256 balance)

func (*Bep20Caller) Decimals

func (_Bep20 *Bep20Caller) Decimals(opts *bind.CallOpts) (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*Bep20Caller) Name

func (_Bep20 *Bep20Caller) Name(opts *bind.CallOpts) (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*Bep20Caller) Symbol

func (_Bep20 *Bep20Caller) Symbol(opts *bind.CallOpts) (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*Bep20Caller) TotalSupply

func (_Bep20 *Bep20Caller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

type Bep20CallerRaw

type Bep20CallerRaw struct {
	Contract *Bep20Caller // Generic read-only contract binding to access the raw methods on
}

Bep20CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*Bep20CallerRaw) Call

func (_Bep20 *Bep20CallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type Bep20CallerSession

type Bep20CallerSession struct {
	Contract *Bep20Caller  // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts // Call options to use throughout this session
}

Bep20CallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*Bep20CallerSession) Allowance

func (_Bep20 *Bep20CallerSession) Allowance(_owner common.Address, _spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address _owner, address _spender) view returns(uint256)

func (*Bep20CallerSession) BalanceOf

func (_Bep20 *Bep20CallerSession) BalanceOf(_owner common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address _owner) view returns(uint256 balance)

func (*Bep20CallerSession) Decimals

func (_Bep20 *Bep20CallerSession) Decimals() (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*Bep20CallerSession) Name

func (_Bep20 *Bep20CallerSession) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*Bep20CallerSession) Symbol

func (_Bep20 *Bep20CallerSession) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*Bep20CallerSession) TotalSupply

func (_Bep20 *Bep20CallerSession) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

type Bep20Filterer

type Bep20Filterer struct {
	// contains filtered or unexported fields
}

Bep20Filterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewBep20Filterer

func NewBep20Filterer(address common.Address, filterer bind.ContractFilterer) (*Bep20Filterer, error)

NewBep20Filterer creates a new log filterer instance of Bep20, bound to a specific deployed contract.

func (*Bep20Filterer) FilterApproval

func (_Bep20 *Bep20Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*Bep20ApprovalIterator, error)

FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*Bep20Filterer) FilterTransfer

func (_Bep20 *Bep20Filterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*Bep20TransferIterator, error)

FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

func (*Bep20Filterer) ParseApproval

func (_Bep20 *Bep20Filterer) ParseApproval(log types.Log) (*Bep20Approval, error)

ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*Bep20Filterer) ParseTransfer

func (_Bep20 *Bep20Filterer) ParseTransfer(log types.Log) (*Bep20Transfer, error)

ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

func (*Bep20Filterer) WatchApproval

func (_Bep20 *Bep20Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *Bep20Approval, owner []common.Address, spender []common.Address) (event.Subscription, error)

WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*Bep20Filterer) WatchTransfer

func (_Bep20 *Bep20Filterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *Bep20Transfer, from []common.Address, to []common.Address) (event.Subscription, error)

WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

type Bep20Raw

type Bep20Raw struct {
	Contract *Bep20 // Generic contract binding to access the raw methods on
}

Bep20Raw is an auto generated low-level Go binding around an Ethereum contract.

func (*Bep20Raw) Call

func (_Bep20 *Bep20Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*Bep20Raw) Transact

func (_Bep20 *Bep20Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*Bep20Raw) Transfer

func (_Bep20 *Bep20Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type Bep20Session

type Bep20Session struct {
	Contract     *Bep20            // Generic contract binding to set the session for
	CallOpts     bind.CallOpts     // Call options to use throughout this session
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

Bep20Session is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*Bep20Session) Allowance

func (_Bep20 *Bep20Session) Allowance(_owner common.Address, _spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address _owner, address _spender) view returns(uint256)

func (*Bep20Session) Approve

func (_Bep20 *Bep20Session) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address _spender, uint256 _value) returns(bool)

func (*Bep20Session) BalanceOf

func (_Bep20 *Bep20Session) BalanceOf(_owner common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address _owner) view returns(uint256 balance)

func (*Bep20Session) Decimals

func (_Bep20 *Bep20Session) Decimals() (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*Bep20Session) Fallback

func (_Bep20 *Bep20Session) Fallback(calldata []byte) (*types.Transaction, error)

Fallback is a paid mutator transaction binding the contract fallback function.

Solidity: fallback() payable returns()

func (*Bep20Session) Name

func (_Bep20 *Bep20Session) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*Bep20Session) Symbol

func (_Bep20 *Bep20Session) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*Bep20Session) TotalSupply

func (_Bep20 *Bep20Session) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

func (*Bep20Session) Transfer

func (_Bep20 *Bep20Session) Transfer(_to common.Address, _value *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address _to, uint256 _value) returns(bool)

func (*Bep20Session) TransferFrom

func (_Bep20 *Bep20Session) TransferFrom(_from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address _from, address _to, uint256 _value) returns(bool)

type Bep20Transactor

type Bep20Transactor struct {
	// contains filtered or unexported fields
}

Bep20Transactor is an auto generated write-only Go binding around an Ethereum contract.

func NewBep20Transactor

func NewBep20Transactor(address common.Address, transactor bind.ContractTransactor) (*Bep20Transactor, error)

NewBep20Transactor creates a new write-only instance of Bep20, bound to a specific deployed contract.

func (*Bep20Transactor) Approve

func (_Bep20 *Bep20Transactor) Approve(opts *bind.TransactOpts, _spender common.Address, _value *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address _spender, uint256 _value) returns(bool)

func (*Bep20Transactor) Fallback

func (_Bep20 *Bep20Transactor) Fallback(opts *bind.TransactOpts, calldata []byte) (*types.Transaction, error)

Fallback is a paid mutator transaction binding the contract fallback function.

Solidity: fallback() payable returns()

func (*Bep20Transactor) Transfer

func (_Bep20 *Bep20Transactor) Transfer(opts *bind.TransactOpts, _to common.Address, _value *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address _to, uint256 _value) returns(bool)

func (*Bep20Transactor) TransferFrom

func (_Bep20 *Bep20Transactor) TransferFrom(opts *bind.TransactOpts, _from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address _from, address _to, uint256 _value) returns(bool)

type Bep20TransactorRaw

type Bep20TransactorRaw struct {
	Contract *Bep20Transactor // Generic write-only contract binding to access the raw methods on
}

Bep20TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*Bep20TransactorRaw) Transact

func (_Bep20 *Bep20TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*Bep20TransactorRaw) Transfer

func (_Bep20 *Bep20TransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type Bep20TransactorSession

type Bep20TransactorSession struct {
	Contract     *Bep20Transactor  // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

Bep20TransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*Bep20TransactorSession) Approve

func (_Bep20 *Bep20TransactorSession) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address _spender, uint256 _value) returns(bool)

func (*Bep20TransactorSession) Fallback

func (_Bep20 *Bep20TransactorSession) Fallback(calldata []byte) (*types.Transaction, error)

Fallback is a paid mutator transaction binding the contract fallback function.

Solidity: fallback() payable returns()

func (*Bep20TransactorSession) Transfer

func (_Bep20 *Bep20TransactorSession) Transfer(_to common.Address, _value *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address _to, uint256 _value) returns(bool)

func (*Bep20TransactorSession) TransferFrom

func (_Bep20 *Bep20TransactorSession) TransferFrom(_from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address _from, address _to, uint256 _value) returns(bool)

type Bep20Transfer

type Bep20Transfer struct {
	From  common.Address
	To    common.Address
	Value *big.Int
	Raw   types.Log // Blockchain specific contextual infos
}

Bep20Transfer represents a Transfer event raised by the Bep20 contract.

type Bep20TransferIterator

type Bep20TransferIterator struct {
	Event *Bep20Transfer // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

Bep20TransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the Bep20 contract.

func (*Bep20TransferIterator) Close

func (it *Bep20TransferIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*Bep20TransferIterator) Error

func (it *Bep20TransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*Bep20TransferIterator) Next

func (it *Bep20TransferIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type ChainClient

type ChainClient struct {
	// contains filtered or unexported fields
}

func NewChainClient

func NewChainClient(nodes map[string]int, currencies map[string]Currency) *ChainClient

@title 创建链客户端 @param nodes map[string]int 节点列表 @param currencies map[string]Currency 币种列表 @return _ *ChainClient 链客户端

func (*ChainClient) Chain

func (Self *ChainClient) Chain() common.Chain

@title 链类型 @param Self *ChainClient @return _ common.Chain 链类型

func (*ChainClient) GetBalance

func (Self *ChainClient) GetBalance(address string, currency string, args any) (float64, error)

@title 查询余额 @param Self *ChainClient @param address string 地址 @param currency string 币种 @param args any 参数 @return _ float64 余额 @return _ error 异常信息

func (*ChainClient) GetCurrentHeight

func (Self *ChainClient) GetCurrentHeight() (uint64, error)

@title 获取当前高度 @param Self *ChainClient @return _ uint64 当前高度 @return _ error 异常信息

func (*ChainClient) GetTransaction

func (Self *ChainClient) GetTransaction(txHash string) (*common.Transaction, error)

@title 查询交易 @param Self *ChainClient @param txHash string 交易Hash @return _ *Transaction 交易信息 @return _ error 异常信息

func (*ChainClient) Transfer

func (Self *ChainClient) Transfer(privateKey *secp256k1.PrivateKey, to string, currency string, value float64, args any) (string, error)

@title 转账 @param Self *ChainClient @param privateKey *secp256k1.PrivateKey 私钥 @param to string 接收方 @param currency string 币种 @param value float64 金额 @param args any 参数 @return _ string 交易哈希 @return _ error 异常信息

type Currency

type Currency struct {
	Contract string `json:"," default:""`
	Decimals int    `json:","`
}

type GetBalanceParameter

type GetBalanceParameter struct {
}

type TransferParameter

type TransferParameter struct {
}

Jump to

Keyboard shortcuts

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