Versions in this module Expand all Collapse all v1 v1.1.0 Mar 23, 2024 Changes in this version + type IRC2 struct + func NewIRC2(contract string, iconService IconService) *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) v1.0.0 Mar 21, 2024 Changes in this version + type IconService struct + IconServiceURL string + func NewIconService(iconServiceURL *string) *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 struct + func NewTransaction(iconService *IconService) *Transaction + func (t *Transaction) Send() (map[string]interface{}, error) + func (t *Transaction) SetMethod(method string) + func (t *Transaction) SetParams(newParams map[string]interface{}) + type TransactionBuilder struct + func NewTransactionBuilder(iconService *IconService) *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 struct + PrivateKey string + PublicAddress string + PublicKey string + func NewWallet(existingKey *string) *Wallet