Documentation ¶
Index ¶
- type IRC2
- func (i *IRC2) BalanceOf(address string) (map[string]interface{}, error)
- func (i *IRC2) Decimals() (map[string]interface{}, error)
- func (i *IRC2) Name() (map[string]interface{}, error)
- func (i *IRC2) Symbol() (map[string]interface{}, error)
- func (i *IRC2) TotalSupply() (map[string]interface{}, error)
- func (i *IRC2) Transfer(wallet Wallet, to string, value string, version string, nid string, ...) (map[string]interface{}, error)
- type IconService
- func (i *IconService) Call(score string, params map[string]interface{}) (map[string]interface{}, error)
- func (i *IconService) GetBalance(address string) (map[string]interface{}, error)
- func (i *IconService) GetBlockByHash(hash string) (map[string]interface{}, error)
- func (i *IconService) GetBlockByHeight(height string) (map[string]interface{}, error)
- func (i *IconService) GetLastBlock() (map[string]interface{}, error)
- func (i *IconService) GetTransactionResult(txHash string) (map[string]interface{}, error)
- func (i *IconService) SendTransaction(wallet Wallet, to string, value string, version string, nid string, ...) (map[string]interface{}, error)
- func (i *IconService) SendTransactionWithMessage(wallet Wallet, to string, value string, version string, nid string, ...) (map[string]interface{}, error)
- type Transaction
- type TransactionBuilder
- func (t *TransactionBuilder) Address(address string) *TransactionBuilder
- func (t *TransactionBuilder) BlockHash(hash string) *TransactionBuilder
- func (t *TransactionBuilder) BlockHeight(height string) *TransactionBuilder
- func (t *TransactionBuilder) Build() Transaction
- func (t *TransactionBuilder) Call(call_params map[string]interface{}) *TransactionBuilder
- func (t *TransactionBuilder) From(from string) *TransactionBuilder
- func (t *TransactionBuilder) Message(message string) *TransactionBuilder
- func (t *TransactionBuilder) Method(method string) *TransactionBuilder
- func (t *TransactionBuilder) Nid(nid string) *TransactionBuilder
- func (t *TransactionBuilder) Nonce(nonce string) *TransactionBuilder
- func (t *TransactionBuilder) Sign(wallet Wallet) *TransactionBuilder
- func (t *TransactionBuilder) StepLimit(stepLimit string) *TransactionBuilder
- func (t *TransactionBuilder) Timestamp() *TransactionBuilder
- func (t *TransactionBuilder) To(to string) *TransactionBuilder
- func (t *TransactionBuilder) TxHash(txHash string) *TransactionBuilder
- func (t *TransactionBuilder) Value(value string) *TransactionBuilder
- func (t *TransactionBuilder) Version(version string) *TransactionBuilder
- type Wallet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IRC2 ¶ added in v1.1.0
type IRC2 struct {
// contains filtered or unexported fields
}
func NewIRC2 ¶ added in v1.1.0
func NewIRC2(contract string, iconService IconService) *IRC2
func (*IRC2) TotalSupply ¶ added in v1.1.0
type IconService ¶
type IconService struct {
IconServiceURL string
}
func NewIconService ¶
func NewIconService(iconServiceURL *string) *IconService
func (*IconService) Call ¶
func (i *IconService) Call(score string, params map[string]interface{}) (map[string]interface{}, error)
func (*IconService) GetBalance ¶
func (i *IconService) GetBalance(address string) (map[string]interface{}, error)
func (*IconService) GetBlockByHash ¶
func (i *IconService) GetBlockByHash(hash string) (map[string]interface{}, error)
func (*IconService) GetBlockByHeight ¶
func (i *IconService) GetBlockByHeight(height string) (map[string]interface{}, error)
func (*IconService) GetLastBlock ¶
func (i *IconService) GetLastBlock() (map[string]interface{}, error)
func (*IconService) GetTransactionResult ¶
func (i *IconService) GetTransactionResult(txHash string) (map[string]interface{}, error)
func (*IconService) SendTransaction ¶
type Transaction ¶
type Transaction struct {
// contains filtered or unexported fields
}
func NewTransaction ¶
func NewTransaction(iconService *IconService) *Transaction
func (*Transaction) Send ¶
func (t *Transaction) Send() (map[string]interface{}, error)
func (*Transaction) SetMethod ¶
func (t *Transaction) SetMethod(method string)
func (*Transaction) SetParams ¶
func (t *Transaction) SetParams(newParams map[string]interface{})
type TransactionBuilder ¶
type TransactionBuilder struct {
// contains filtered or unexported fields
}
func NewTransactionBuilder ¶
func NewTransactionBuilder(iconService *IconService) *TransactionBuilder
func (*TransactionBuilder) Address ¶
func (t *TransactionBuilder) Address(address string) *TransactionBuilder
func (*TransactionBuilder) BlockHash ¶
func (t *TransactionBuilder) BlockHash(hash string) *TransactionBuilder
func (*TransactionBuilder) BlockHeight ¶
func (t *TransactionBuilder) BlockHeight(height string) *TransactionBuilder
func (*TransactionBuilder) Build ¶
func (t *TransactionBuilder) Build() Transaction
func (*TransactionBuilder) Call ¶
func (t *TransactionBuilder) Call(call_params map[string]interface{}) *TransactionBuilder
func (*TransactionBuilder) From ¶
func (t *TransactionBuilder) From(from string) *TransactionBuilder
func (*TransactionBuilder) Message ¶
func (t *TransactionBuilder) Message(message string) *TransactionBuilder
func (*TransactionBuilder) Method ¶
func (t *TransactionBuilder) Method(method string) *TransactionBuilder
func (*TransactionBuilder) Nid ¶
func (t *TransactionBuilder) Nid(nid string) *TransactionBuilder
func (*TransactionBuilder) Nonce ¶
func (t *TransactionBuilder) Nonce(nonce string) *TransactionBuilder
func (*TransactionBuilder) Sign ¶
func (t *TransactionBuilder) Sign(wallet Wallet) *TransactionBuilder
func (*TransactionBuilder) StepLimit ¶
func (t *TransactionBuilder) StepLimit(stepLimit string) *TransactionBuilder
func (*TransactionBuilder) Timestamp ¶
func (t *TransactionBuilder) Timestamp() *TransactionBuilder
func (*TransactionBuilder) To ¶
func (t *TransactionBuilder) To(to string) *TransactionBuilder
func (*TransactionBuilder) TxHash ¶
func (t *TransactionBuilder) TxHash(txHash string) *TransactionBuilder
func (*TransactionBuilder) Value ¶
func (t *TransactionBuilder) Value(value string) *TransactionBuilder
func (*TransactionBuilder) Version ¶
func (t *TransactionBuilder) Version(version string) *TransactionBuilder
Click to show internal directories.
Click to hide internal directories.