Versions in this module Expand all Collapse all v1 v1.0.0 Jul 14, 2023 Changes in this version + func GetMessageBytes(m []byte) *api.BytesMessage + func GetMessageNumber(n int64) *api.NumberMessage + func GetPaginatedMessage(offset int64, limit int64) *api.PaginatedMessage + type GrpcClient struct + Address string + Client api.WalletClient + Conn *grpc.ClientConn + func NewGrpcClient(address string) *GrpcClient + func NewGrpcClientWithTimeout(address string, timeout time.Duration) *GrpcClient + func (g *GrpcClient) AssetIssue(from, name, description, abbr, urlStr string, precision int32, ...) (*api.TransactionExtention, error) + func (g *GrpcClient) Broadcast(tx *core.Transaction) (*api.Return, error) + func (g *GrpcClient) CreateAccount(from, addr string) (*api.TransactionExtention, error) + func (g *GrpcClient) CreateWitness(from, urlStr string) (*api.TransactionExtention, error) + func (g *GrpcClient) DelegateResource(from, to string, resource core.ResourceCode, delegateBalance int64, lock bool) (*api.TransactionExtention, error) + func (g *GrpcClient) DeployContract(from, contractName string, abi *core.SmartContract_ABI, codeStr string, ...) (*api.TransactionExtention, error) + func (g *GrpcClient) EstimateEnergy(from, contractAddress, method, jsonString string, tAmount int64, ...) (*api.EstimateEnergyMessage, error) + func (g *GrpcClient) ExchangeByID(id int64) (*core.Exchange, error) + func (g *GrpcClient) ExchangeCreate(from string, tokenID1 string, amountToken1 int64, tokenID2 string, ...) (*api.TransactionExtention, error) + func (g *GrpcClient) ExchangeInject(from string, exchangeID int64, tokenID string, amountToken int64) (*api.TransactionExtention, error) + func (g *GrpcClient) ExchangeList(page int64, limit ...int) (*api.ExchangeList, error) + func (g *GrpcClient) ExchangeTrade(from string, exchangeID int64, tokenID string, amountToken int64, ...) (*api.TransactionExtention, error) + func (g *GrpcClient) ExchangeWithdraw(from string, exchangeID int64, tokenID string, amountToken int64) (*api.TransactionExtention, error) + func (g *GrpcClient) FreezeBalance(from, delegateTo string, resource core.ResourceCode, frozenBalance int64) (*api.TransactionExtention, error) + func (g *GrpcClient) FreezeBalanceV2(from string, resource core.ResourceCode, frozenBalance int64) (*api.TransactionExtention, error) + func (g *GrpcClient) GetAccount(addr string) (*core.Account, error) + func (g *GrpcClient) GetAccountDetailed(addr string) (*account.Account, error) + func (g *GrpcClient) GetAccountNet(addr string) (*api.AccountNetMessage, error) + func (g *GrpcClient) GetAccountResource(addr string) (*api.AccountResourceMessage, error) + func (g *GrpcClient) GetAssetIssueByAccount(address string) (*api.AssetIssueList, error) + func (g *GrpcClient) GetAssetIssueByID(tokenID string) (*core.AssetIssueContract, error) + func (g *GrpcClient) GetAssetIssueByName(name string) (*core.AssetIssueContract, error) + func (g *GrpcClient) GetAssetIssueList(page int64, limit ...int) (*api.AssetIssueList, error) + func (g *GrpcClient) GetAvailableUnfreezeCount(from string) (*api.GetAvailableUnfreezeCountResponseMessage, error) + func (g *GrpcClient) GetBlockByID(id string) (*core.Block, error) + func (g *GrpcClient) GetBlockByLatestNum(num int64) (*api.BlockListExtention, error) + func (g *GrpcClient) GetBlockByLimitNext(start, end int64) (*api.BlockListExtention, error) + func (g *GrpcClient) GetBlockByNum(num int64) (*api.BlockExtention, error) + func (g *GrpcClient) GetBlockInfoByNum(num int64) (*api.TransactionInfoList, error) + func (g *GrpcClient) GetCanDelegatedMaxSize(address string, resource int32) (*api.CanDelegatedMaxSizeResponseMessage, error) + func (g *GrpcClient) GetCanWithdrawUnfreezeAmount(from string, timestamp int64) (*api.CanWithdrawUnfreezeAmountResponseMessage, error) + func (g *GrpcClient) GetContractABI(contractAddress string) (*core.SmartContract_ABI, error) + func (g *GrpcClient) GetDelegatedResources(address string) ([]*api.DelegatedResourceList, error) + func (g *GrpcClient) GetDelegatedResourcesV2(address string) ([]*api.DelegatedResourceList, error) + func (g *GrpcClient) GetNextMaintenanceTime() (*api.NumberMessage, error) + func (g *GrpcClient) GetNodeInfo() (*core.NodeInfo, error) + func (g *GrpcClient) GetNowBlock() (*api.BlockExtention, error) + func (g *GrpcClient) GetRewardsInfo(addr string) (int64, error) + func (g *GrpcClient) GetTransactionByID(id string) (*core.Transaction, error) + func (g *GrpcClient) GetTransactionInfoByID(id string) (*core.TransactionInfo, error) + func (g *GrpcClient) GetTransactionSignWeight(tx *core.Transaction) (*api.TransactionSignWeight, error) + func (g *GrpcClient) GetWitnessBrokerage(witness string) (float64, error) + func (g *GrpcClient) ListNodes() (*api.NodeList, error) + func (g *GrpcClient) ListWitnesses() (*api.WitnessList, error) + func (g *GrpcClient) ParseTRC20NumericProperty(data string) (*big.Int, error) + func (g *GrpcClient) ParseTRC20StringProperty(data string) (string, error) + func (g *GrpcClient) ParticipateAssetIssue(from, issuerAddress, tokenID string, amount int64) (*api.TransactionExtention, error) + func (g *GrpcClient) ProposalApprove(from string, id int64, confirm bool) (*api.TransactionExtention, error) + func (g *GrpcClient) ProposalCreate(from string, parameters map[int64]int64) (*api.TransactionExtention, error) + func (g *GrpcClient) ProposalWithdraw(from string, id int64) (*api.TransactionExtention, error) + func (g *GrpcClient) ProposalsList() (*api.ProposalList, error) + func (g *GrpcClient) Reconnect(url string) error + func (g *GrpcClient) SetAPIKey(apiKey string) error + func (g *GrpcClient) SetTimeout(timeout time.Duration) + func (g *GrpcClient) Start(opts ...grpc.DialOption) error + func (g *GrpcClient) Stop() + func (g *GrpcClient) TRC20Approve(from, to, contract string, amount *big.Int, feeLimit int64) (*api.TransactionExtention, error) + func (g *GrpcClient) TRC20Call(from, contractAddress, data string, constant bool, feeLimit int64) (*api.TransactionExtention, error) + func (g *GrpcClient) TRC20ContractBalance(addr, contractAddress string) (*big.Int, error) + func (g *GrpcClient) TRC20GetDecimals(contractAddress string) (*big.Int, error) + func (g *GrpcClient) TRC20GetName(contractAddress string) (string, error) + func (g *GrpcClient) TRC20GetSymbol(contractAddress string) (string, error) + func (g *GrpcClient) TRC20Send(from, to, contract string, amount *big.Int, feeLimit int64) (*api.TransactionExtention, error) + func (g *GrpcClient) TotalTransaction() (*api.NumberMessage, error) + func (g *GrpcClient) Transfer(from, toAddress string, amount int64) (*api.TransactionExtention, error) + func (g *GrpcClient) TransferAsset(from, toAddress, assetName string, amount int64) (*api.TransactionExtention, error) + func (g *GrpcClient) TriggerConstantContract(from, contractAddress, method, jsonString string) (*api.TransactionExtention, error) + func (g *GrpcClient) TriggerContract(from, contractAddress, method, jsonString string, feeLimit, tAmount int64, ...) (*api.TransactionExtention, error) + func (g *GrpcClient) UnDelegateResource(owner, receiver string, resource core.ResourceCode, delegateBalance int64, ...) (*api.TransactionExtention, error) + func (g *GrpcClient) UnfreezeAsset(from string) (*api.TransactionExtention, error) + func (g *GrpcClient) UnfreezeBalance(from, delegateTo string, resource core.ResourceCode) (*api.TransactionExtention, error) + func (g *GrpcClient) UnfreezeBalanceV2(from string, resource core.ResourceCode, unfreezeBalance int64) (*api.TransactionExtention, error) + func (g *GrpcClient) UpdateAccount(from, accountName string) (*api.TransactionExtention, error) + func (g *GrpcClient) UpdateAccountPermission(from string, owner, witness map[string]interface{}, ...) (*api.TransactionExtention, error) + func (g *GrpcClient) UpdateAssetIssue(from, description, urlStr string, newLimit, newPublicLimit int64) (*api.TransactionExtention, error) + func (g *GrpcClient) UpdateBrokerage(from string, comission int32) (*api.TransactionExtention, error) + func (g *GrpcClient) UpdateEnergyLimitContract(from, contractAddress string, value int64) (*api.TransactionExtention, error) + func (g *GrpcClient) UpdateHash(tx *api.TransactionExtention) error + func (g *GrpcClient) UpdateSettingContract(from, contractAddress string, value int64) (*api.TransactionExtention, error) + func (g *GrpcClient) UpdateWitness(from, urlStr string) (*api.TransactionExtention, error) + func (g *GrpcClient) VoteWitnessAccount(from string, witnessMap map[string]int64) (*api.TransactionExtention, error) + func (g *GrpcClient) WithdrawBalance(from string) (*api.TransactionExtention, error) + func (g *GrpcClient) WithdrawExpireUnfreeze(from string, timestamp int64) (*api.TransactionExtention, error)