Documentation
¶
Index ¶
- func GetMessageBytes(m []byte) *api.BytesMessage
- func GetMessageNumber(n int64) *api.NumberMessage
- func GetPaginatedMessage(offset int64, limit int64) *api.PaginatedMessage
- type Client
- func (g *Client) AssetIssue(ctx context.Context, from, name, description, abbr, urlStr string, ...) (*api.TransactionExtention, error)
- func (g *Client) Broadcast(ctx context.Context, tx *core.Transaction) (*api.Return, error)
- func (g *Client) CreateAccount(ctx context.Context, from, addr string) (*api.TransactionExtention, error)
- func (g *Client) CreateWitness(ctx context.Context, from, urlStr string) (*api.TransactionExtention, error)
- func (g *Client) DelegateResource(ctx context.Context, from, to string, resource core.ResourceCode, ...) (*api.TransactionExtention, error)
- func (g *Client) DeployContract(ctx context.Context, from, contractName string, abi *core.SmartContract_ABI, ...) (*api.TransactionExtention, error)
- func (g *Client) EstimateEnergy(ctx context.Context, from, contractAddress, method, jsonString string, ...) (*api.EstimateEnergyMessage, error)
- func (g *Client) ExchangeByID(ctx context.Context, id int64) (*core.Exchange, error)
- func (g *Client) ExchangeCreate(ctx context.Context, from string, tokenID1 string, amountToken1 int64, ...) (*api.TransactionExtention, error)
- func (g *Client) ExchangeInject(ctx context.Context, from string, exchangeID int64, tokenID string, ...) (*api.TransactionExtention, error)
- func (g *Client) ExchangeList(ctx context.Context, page int64, limit ...int) (*api.ExchangeList, error)
- func (g *Client) ExchangeTrade(ctx context.Context, from string, exchangeID int64, tokenID string, ...) (*api.TransactionExtention, error)
- func (g *Client) ExchangeWithdraw(ctx context.Context, from string, exchangeID int64, tokenID string, ...) (*api.TransactionExtention, error)
- func (g *Client) FreezeBalance(ctx context.Context, from, delegateTo string, resource core.ResourceCode, ...) (*api.TransactionExtention, error)
- func (g *Client) FreezeBalanceV2(ctx context.Context, from string, resource core.ResourceCode, ...) (*api.TransactionExtention, error)
- func (g *Client) GetAccount(ctx context.Context, addr string) (*core.Account, error)
- func (g *Client) GetAccountDetailed(ctx context.Context, addr string) (*account.Account, error)
- func (g *Client) GetAccountNet(ctx context.Context, addr string) (*api.AccountNetMessage, error)
- func (g *Client) GetAccountResource(ctx context.Context, addr string) (*api.AccountResourceMessage, error)
- func (g *Client) GetAssetIssueByAccount(ctx context.Context, address string) (*api.AssetIssueList, error)
- func (g *Client) GetAssetIssueByID(ctx context.Context, tokenID string) (*core.AssetIssueContract, error)
- func (g *Client) GetAssetIssueByName(ctx context.Context, name string) (*core.AssetIssueContract, error)
- func (g *Client) GetAssetIssueList(ctx context.Context, page int64, limit ...int) (*api.AssetIssueList, error)
- func (g *Client) GetAvailableUnfreezeCount(ctx context.Context, from string) (*api.GetAvailableUnfreezeCountResponseMessage, error)
- func (g *Client) GetBandwidthPrices(ctx context.Context) (*api.PricesResponseMessage, error)
- func (g *Client) GetBlockByID(ctx context.Context, id string) (*core.Block, error)
- func (g *Client) GetBlockByLatestNum(ctx context.Context, num int64) (*api.BlockListExtention, error)
- func (g *Client) GetBlockByLimitNext(ctx context.Context, start, end int64) (*api.BlockListExtention, error)
- func (g *Client) GetBlockByNum(ctx context.Context, num int64) (*api.BlockExtention, error)
- func (g *Client) GetBlockInfoByNum(ctx context.Context, num int64) (*api.TransactionInfoList, error)
- func (g *Client) GetCanDelegatedMaxSize(ctx context.Context, address string, resource int32) (*api.CanDelegatedMaxSizeResponseMessage, error)
- func (g *Client) GetCanWithdrawUnfreezeAmount(ctx context.Context, from string, timestamp int64) (*api.CanWithdrawUnfreezeAmountResponseMessage, error)
- func (g *Client) GetContractABI(ctx context.Context, contractAddress string) (*core.SmartContract_ABI, error)
- func (g *Client) GetDelegatedResources(ctx context.Context, address string) ([]*api.DelegatedResourceList, error)
- func (g *Client) GetDelegatedResourcesV2(ctx context.Context, address string) ([]*api.DelegatedResourceList, error)
- func (g *Client) GetEnergyPrices(ctx context.Context) (*api.PricesResponseMessage, error)
- func (g *Client) GetNextMaintenanceTime(ctx context.Context) (*api.NumberMessage, error)
- func (g *Client) GetNodeInfo(ctx context.Context) (*core.NodeInfo, error)
- func (g *Client) GetNowBlock(ctx context.Context) (*api.BlockExtention, error)
- func (g *Client) GetRewardsInfo(ctx context.Context, addr string) (int64, error)
- func (g *Client) GetTransactionByID(ctx context.Context, id string) (*core.Transaction, error)
- func (g *Client) GetTransactionInfoByID(ctx context.Context, id string) (*core.TransactionInfo, error)
- func (g *Client) GetTransactionSignWeight(ctx context.Context, tx *core.Transaction) (*api.TransactionSignWeight, error)
- func (g *Client) GetWitnessBrokerage(ctx context.Context, witness string) (float64, error)
- func (g *Client) ListNodes(ctx context.Context) (*api.NodeList, error)
- func (g *Client) ListWitnesses(ctx context.Context) (*api.WitnessList, error)
- func (g *Client) ParseTRC20NumericProperty(data string) (*big.Int, error)
- func (g *Client) ParseTRC20StringProperty(data string) (string, error)
- func (g *Client) ParticipateAssetIssue(ctx context.Context, from, issuerAddress, tokenID string, amount int64) (*api.TransactionExtention, error)
- func (g *Client) ProposalApprove(ctx context.Context, from string, id int64, confirm bool) (*api.TransactionExtention, error)
- func (g *Client) ProposalCreate(ctx context.Context, from string, parameters map[int64]int64) (*api.TransactionExtention, error)
- func (g *Client) ProposalWithdraw(ctx context.Context, from string, id int64) (*api.TransactionExtention, error)
- func (g *Client) ProposalsList(ctx context.Context) (*api.ProposalList, error)
- func (g *Client) Reconnect(url string) error
- func (g *Client) Start(opts ...grpc.DialOption) error
- func (g *Client) Stop()
- func (g *Client) TRC20Approve(ctx context.Context, from, to, contract string, amount *big.Int, ...) (*api.TransactionExtention, error)
- func (g *Client) TRC20Call(ctx context.Context, from, contractAddress, data string, constant bool, ...) (*api.TransactionExtention, error)
- func (g *Client) TRC20ContractBalance(ctx context.Context, addr, contractAddress string) (*big.Int, error)
- func (g *Client) TRC20GetDecimals(ctx context.Context, contractAddress string) (*big.Int, error)
- func (g *Client) TRC20GetName(ctx context.Context, contractAddress string) (string, error)
- func (g *Client) TRC20GetSymbol(ctx context.Context, contractAddress string) (string, error)
- func (g *Client) TRC20Send(ctx context.Context, from, to, contract string, amount *big.Int, ...) (*api.TransactionExtention, error)
- func (g *Client) TotalTransaction(ctx context.Context) (*api.NumberMessage, error)
- func (g *Client) Transfer(ctx context.Context, from, toAddress string, amount int64) (*api.TransactionExtention, error)
- func (g *Client) TransferAsset(ctx context.Context, from, toAddress, assetName string, amount int64) (*api.TransactionExtention, error)
- func (g *Client) TriggerConstantContract(ctx context.Context, from, contractAddress, method, jsonString string) (*api.TransactionExtention, error)
- func (g *Client) TriggerContract(ctx context.Context, from, contractAddress, method, jsonString string, ...) (*api.TransactionExtention, error)
- func (g *Client) UnDelegateResource(ctx context.Context, owner, receiver string, resource core.ResourceCode, ...) (*api.TransactionExtention, error)
- func (g *Client) UnfreezeAsset(ctx context.Context, from string) (*api.TransactionExtention, error)
- func (g *Client) UnfreezeBalance(ctx context.Context, from, delegateTo string, resource core.ResourceCode) (*api.TransactionExtention, error)
- func (g *Client) UnfreezeBalanceV2(ctx context.Context, from string, resource core.ResourceCode, ...) (*api.TransactionExtention, error)
- func (g *Client) UpdateAccount(ctx context.Context, from, accountName string) (*api.TransactionExtention, error)
- func (g *Client) UpdateAccountPermission(ctx context.Context, from string, owner, witness map[string]interface{}, ...) (*api.TransactionExtention, error)
- func (g *Client) UpdateAssetIssue(ctx context.Context, from, description, urlStr string, ...) (*api.TransactionExtention, error)
- func (g *Client) UpdateBrokerage(ctx context.Context, from string, comission int32) (*api.TransactionExtention, error)
- func (g *Client) UpdateEnergyLimitContract(ctx context.Context, from, contractAddress string, value int64) (*api.TransactionExtention, error)
- func (g *Client) UpdateHash(tx *api.TransactionExtention) error
- func (g *Client) UpdateSettingContract(ctx context.Context, from, contractAddress string, value int64) (*api.TransactionExtention, error)
- func (g *Client) UpdateWitness(ctx context.Context, from, urlStr string) (*api.TransactionExtention, error)
- func (g *Client) VoteWitnessAccount(ctx context.Context, from string, witnessMap map[string]int64) (*api.TransactionExtention, error)
- func (g *Client) WithdrawBalance(ctx context.Context, from string) (*api.TransactionExtention, error)
- func (g *Client) WithdrawExpireUnfreeze(ctx context.Context, from string, timestamp int64) (*api.TransactionExtention, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMessageBytes ¶
func GetMessageBytes(m []byte) *api.BytesMessage
GetMessageBytes return grpc message from bytes
func GetMessageNumber ¶
func GetMessageNumber(n int64) *api.NumberMessage
GetMessageNumber return grpc message number
func GetPaginatedMessage ¶
func GetPaginatedMessage(offset int64, limit int64) *api.PaginatedMessage
GetPaginatedMessage return grpc message number
Types ¶
type Client ¶ added in v1.0.3
type Client struct { Address string Conn *grpc.ClientConn Client api.WalletClient // contains filtered or unexported fields }
Client controller structure
func (*Client) AssetIssue ¶ added in v1.0.3
func (g *Client) AssetIssue(ctx context.Context, from, name, description, abbr, urlStr string, precision int32, totalSupply, startTime, endTime, FreeAssetNetLimit, PublicFreeAssetNetLimit int64, trxNum, icoNum, voteScore int32, frozenSupply map[string]string) (*api.TransactionExtention, error)
AssetIssue create a new asset TRC10
func (*Client) CreateAccount ¶ added in v1.0.3
func (g *Client) CreateAccount(ctx context.Context, from, addr string) (*api.TransactionExtention, error)
CreateAccount activate tron account
func (*Client) CreateWitness ¶ added in v1.0.3
func (g *Client) CreateWitness(ctx context.Context, from, urlStr string) (*api.TransactionExtention, error)
CreateWitness upgrade account to network witness
func (*Client) DelegateResource ¶ added in v1.0.3
func (g *Client) DelegateResource(ctx context.Context, from, to string, resource core.ResourceCode, delegateBalance int64, lock bool, lockPeriod int64) (*api.TransactionExtention, error)
DelegateResource from BASE58 address
func (*Client) DeployContract ¶ added in v1.0.3
func (g *Client) DeployContract(ctx context.Context, from, contractName string, abi *core.SmartContract_ABI, codeStr string, feeLimit, curPercent, oeLimit int64, ) (*api.TransactionExtention, error)
DeployContract and return tx result
func (*Client) EstimateEnergy ¶ added in v1.0.3
func (g *Client) EstimateEnergy(ctx context.Context, from, contractAddress, method, jsonString string, tAmount int64, tTokenID string, tTokenAmount int64) (*api.EstimateEnergyMessage, error)
EstimateEnergy returns enery required
func (*Client) ExchangeByID ¶ added in v1.0.3
ExchangeByID returns exchangeDetails
func (*Client) ExchangeCreate ¶ added in v1.0.3
func (g *Client) ExchangeCreate(ctx context.Context, from string, tokenID1 string, amountToken1 int64, tokenID2 string, amountToken2 int64, ) (*api.TransactionExtention, error)
ExchangeCreate from two tokens (TRC10/TRX) only
func (*Client) ExchangeInject ¶ added in v1.0.3
func (g *Client) ExchangeInject(ctx context.Context, from string, exchangeID int64, tokenID string, amountToken int64, ) (*api.TransactionExtention, error)
ExchangeInject both tokens into banco pair (the second token is taken info transaction process)
func (*Client) ExchangeList ¶ added in v1.0.3
func (g *Client) ExchangeList(ctx context.Context, page int64, limit ...int) (*api.ExchangeList, error)
ExchangeList of bancor TRC10, use page -1 to list all
func (*Client) ExchangeTrade ¶ added in v1.0.3
func (g *Client) ExchangeTrade(ctx context.Context, from string, exchangeID int64, tokenID string, amountToken int64, amountExpected int64, ) (*api.TransactionExtention, error)
ExchangeTrade on bancor TRC10
func (*Client) ExchangeWithdraw ¶ added in v1.0.3
func (g *Client) ExchangeWithdraw(ctx context.Context, from string, exchangeID int64, tokenID string, amountToken int64, ) (*api.TransactionExtention, error)
ExchangeWithdraw both tokens into banco pair (the second token is taken info transaction process)
func (*Client) FreezeBalance ¶ added in v1.0.3
func (g *Client) FreezeBalance(ctx context.Context, from, delegateTo string, resource core.ResourceCode, frozenBalance int64) (*api.TransactionExtention, error)
FreezeBalance from base58 address
func (*Client) FreezeBalanceV2 ¶ added in v1.0.3
func (g *Client) FreezeBalanceV2(ctx context.Context, from string, resource core.ResourceCode, frozenBalance int64) (*api.TransactionExtention, error)
FreezeBalance from base58 address
func (*Client) GetAccount ¶ added in v1.0.3
GetAccount from BASE58 address
func (*Client) GetAccountDetailed ¶ added in v1.0.3
GetAccountDetailed from BASE58 address
func (*Client) GetAccountNet ¶ added in v1.0.3
GetAccountNet return account resources from BASE58 address
func (*Client) GetAccountResource ¶ added in v1.0.3
func (g *Client) GetAccountResource(ctx context.Context, addr string) (*api.AccountResourceMessage, error)
GetAccountResource from BASE58 address
func (*Client) GetAssetIssueByAccount ¶ added in v1.0.3
func (g *Client) GetAssetIssueByAccount(ctx context.Context, address string) (*api.AssetIssueList, error)
GetAssetIssueByAccount list asset issued by account
func (*Client) GetAssetIssueByID ¶ added in v1.0.3
func (g *Client) GetAssetIssueByID(ctx context.Context, tokenID string) (*core.AssetIssueContract, error)
GetAssetIssueByID list asset issued by ID
func (*Client) GetAssetIssueByName ¶ added in v1.0.3
func (g *Client) GetAssetIssueByName(ctx context.Context, name string) (*core.AssetIssueContract, error)
GetAssetIssueByName list asset issued by name
func (*Client) GetAssetIssueList ¶ added in v1.0.3
func (g *Client) GetAssetIssueList(ctx context.Context, page int64, limit ...int) (*api.AssetIssueList, error)
GetAssetIssueList list all TRC10
func (*Client) GetAvailableUnfreezeCount ¶ added in v1.0.3
func (g *Client) GetAvailableUnfreezeCount(ctx context.Context, from string) (*api.GetAvailableUnfreezeCountResponseMessage, error)
GetAvailableUnfreezeCount from base58 address
func (*Client) GetBandwidthPrices ¶ added in v1.0.3
GetBandwidthPrices retrieves bandwidth prices
func (*Client) GetBlockByID ¶ added in v1.0.3
GetBlockByID block from hash
func (*Client) GetBlockByLatestNum ¶ added in v1.0.3
func (g *Client) GetBlockByLatestNum(ctx context.Context, num int64) (*api.BlockListExtention, error)
GetBlockByLatestNum return block list till num
func (*Client) GetBlockByLimitNext ¶ added in v1.0.3
func (g *Client) GetBlockByLimitNext(ctx context.Context, start, end int64) (*api.BlockListExtention, error)
GetBlockByLimitNext return list of block start/end
func (*Client) GetBlockByNum ¶ added in v1.0.3
GetBlockByNum block from number
func (*Client) GetBlockInfoByNum ¶ added in v1.0.3
func (g *Client) GetBlockInfoByNum(ctx context.Context, num int64) (*api.TransactionInfoList, error)
GetBlockInfoByNum block from number
func (*Client) GetCanDelegatedMaxSize ¶ added in v1.0.3
func (g *Client) GetCanDelegatedMaxSize(ctx context.Context, address string, resource int32) (*api.CanDelegatedMaxSizeResponseMessage, error)
GetCanDelegatedMaxSize from BASE58 address
func (*Client) GetCanWithdrawUnfreezeAmount ¶ added in v1.0.3
func (g *Client) GetCanWithdrawUnfreezeAmount(ctx context.Context, from string, timestamp int64) (*api.CanWithdrawUnfreezeAmountResponseMessage, error)
GetCanWithdrawUnfreezeAmount from base58 address
func (*Client) GetContractABI ¶ added in v1.0.3
func (g *Client) GetContractABI(ctx context.Context, contractAddress string) (*core.SmartContract_ABI, error)
GetContractABI return smartContract
func (*Client) GetDelegatedResources ¶ added in v1.0.3
func (g *Client) GetDelegatedResources(ctx context.Context, address string) ([]*api.DelegatedResourceList, error)
GetDelegatedResources from BASE58 address
func (*Client) GetDelegatedResourcesV2 ¶ added in v1.0.3
func (g *Client) GetDelegatedResourcesV2(ctx context.Context, address string) ([]*api.DelegatedResourceList, error)
GetDelegatedResourcesV2 from BASE58 address
func (*Client) GetEnergyPrices ¶ added in v1.0.3
GetEnergyPrices retrieves energy prices
func (*Client) GetNextMaintenanceTime ¶ added in v1.0.3
GetNextMaintenanceTime get next epoch timestamp
func (*Client) GetNodeInfo ¶ added in v1.0.3
GetNodeInfo current connection
func (*Client) GetNowBlock ¶ added in v1.0.3
GetNowBlock return TIP block
func (*Client) GetRewardsInfo ¶ added in v1.0.3
GetRewardsInfo from BASE58 address
func (*Client) GetTransactionByID ¶ added in v1.0.3
GetTransactionByID returns transaction details by ID
func (*Client) GetTransactionInfoByID ¶ added in v1.0.3
func (g *Client) GetTransactionInfoByID(ctx context.Context, id string) (*core.TransactionInfo, error)
GetTransactionInfoByID returns transaction receipt by ID
func (*Client) GetTransactionSignWeight ¶ added in v1.0.3
func (g *Client) GetTransactionSignWeight(ctx context.Context, tx *core.Transaction) (*api.TransactionSignWeight, error)
GetTransactionSignWeight queries transaction sign weight
func (*Client) GetWitnessBrokerage ¶ added in v1.0.3
GetWitnessBrokerage from witness address
func (*Client) ListWitnesses ¶ added in v1.0.3
ListWitnesses return all witnesses
func (*Client) ParseTRC20NumericProperty ¶ added in v1.0.3
ParseTRC20NumericProperty get number from data
func (*Client) ParseTRC20StringProperty ¶ added in v1.0.3
ParseTRC20StringProperty get string from data
func (*Client) ParticipateAssetIssue ¶ added in v1.0.3
func (g *Client) ParticipateAssetIssue(ctx context.Context, from, issuerAddress, tokenID string, amount int64) (*api.TransactionExtention, error)
ParticipateAssetIssue TRC10 ICO
func (*Client) ProposalApprove ¶ added in v1.0.3
func (g *Client) ProposalApprove(ctx context.Context, from string, id int64, confirm bool) (*api.TransactionExtention, error)
ProposalApprove change URL info
func (*Client) ProposalCreate ¶ added in v1.0.3
func (g *Client) ProposalCreate(ctx context.Context, from string, parameters map[int64]int64) (*api.TransactionExtention, error)
ProposalCreate create proposal based on parameter list
func (*Client) ProposalWithdraw ¶ added in v1.0.3
func (*Client) ProposalsList ¶ added in v1.0.3
ProposalsList return all network proposals
func (*Client) Start ¶ added in v1.0.3
func (g *Client) Start(opts ...grpc.DialOption) error
Start initiate grpc connection
func (*Client) TRC20Approve ¶ added in v1.0.3
func (g *Client) TRC20Approve(ctx context.Context, from, to, contract string, amount *big.Int, feeLimit int64) (*api.TransactionExtention, error)
TRC20Approve approve token to address
func (*Client) TRC20Call ¶ added in v1.0.3
func (g *Client) TRC20Call(ctx context.Context, from, contractAddress, data string, constant bool, feeLimit int64) (*api.TransactionExtention, error)
TRC20Call make cosntant calll
func (*Client) TRC20ContractBalance ¶ added in v1.0.3
func (g *Client) TRC20ContractBalance(ctx context.Context, addr, contractAddress string) (*big.Int, error)
TRC20ContractBalance get Address balance
func (*Client) TRC20GetDecimals ¶ added in v1.0.3
TRC20GetDecimals get contract decimals
func (*Client) TRC20GetName ¶ added in v1.0.3
TRC20GetName get token name
func (*Client) TRC20GetSymbol ¶ added in v1.0.3
TRC20GetSymbol get contract symbol
func (*Client) TRC20Send ¶ added in v1.0.3
func (g *Client) TRC20Send(ctx context.Context, from, to, contract string, amount *big.Int, feeLimit int64) (*api.TransactionExtention, error)
TRC20Send send token to address
func (*Client) TotalTransaction ¶ added in v1.0.3
TotalTransaction return total transciton in network
func (*Client) Transfer ¶ added in v1.0.3
func (g *Client) Transfer(ctx context.Context, from, toAddress string, amount int64) (*api.TransactionExtention, error)
Transfer from to base58 address
func (*Client) TransferAsset ¶ added in v1.0.3
func (g *Client) TransferAsset(ctx context.Context, from, toAddress, assetName string, amount int64) (*api.TransactionExtention, error)
TransferAsset from to base58 address
func (*Client) TriggerConstantContract ¶ added in v1.0.3
func (g *Client) TriggerConstantContract(ctx context.Context, from, contractAddress, method, jsonString string) (*api.TransactionExtention, error)
TriggerConstantContract and return tx result
func (*Client) TriggerContract ¶ added in v1.0.3
func (g *Client) TriggerContract(ctx context.Context, from, contractAddress, method, jsonString string, feeLimit, tAmount int64, tTokenID string, tTokenAmount int64) (*api.TransactionExtention, error)
TriggerContract and return tx result
func (*Client) UnDelegateResource ¶ added in v1.0.3
func (g *Client) UnDelegateResource(ctx context.Context, owner, receiver string, resource core.ResourceCode, delegateBalance int64, lock bool) (*api.TransactionExtention, error)
UnDelegateResource from BASE58 address
func (*Client) UnfreezeAsset ¶ added in v1.0.3
UnfreezeAsset from owner
func (*Client) UnfreezeBalance ¶ added in v1.0.3
func (g *Client) UnfreezeBalance(ctx context.Context, from, delegateTo string, resource core.ResourceCode) (*api.TransactionExtention, error)
UnfreezeBalance from base58 address
func (*Client) UnfreezeBalanceV2 ¶ added in v1.0.3
func (g *Client) UnfreezeBalanceV2(ctx context.Context, from string, resource core.ResourceCode, unfreezeBalance int64) (*api.TransactionExtention, error)
UnfreezeBalance from base58 address
func (*Client) UpdateAccount ¶ added in v1.0.3
func (g *Client) UpdateAccount(ctx context.Context, from, accountName string) (*api.TransactionExtention, error)
UpdateAccount change account name
func (*Client) UpdateAccountPermission ¶ added in v1.0.3
func (g *Client) UpdateAccountPermission(ctx context.Context, from string, owner, witness map[string]interface{}, actives []map[string]interface{}) (*api.TransactionExtention, error)
UpdateAccountPermission change account permission
func (*Client) UpdateAssetIssue ¶ added in v1.0.3
func (g *Client) UpdateAssetIssue(ctx context.Context, from, description, urlStr string, newLimit, newPublicLimit int64) (*api.TransactionExtention, error)
UpdateAssetIssue information
func (*Client) UpdateBrokerage ¶ added in v1.0.3
func (g *Client) UpdateBrokerage(ctx context.Context, from string, comission int32) (*api.TransactionExtention, error)
UpdateBrokerage change SR comission fees
func (*Client) UpdateEnergyLimitContract ¶ added in v1.0.3
func (g *Client) UpdateEnergyLimitContract(ctx context.Context, from, contractAddress string, value int64) (*api.TransactionExtention, error)
UpdateEnergyLimitContract update contract enery limit
func (*Client) UpdateHash ¶ added in v1.0.3
func (g *Client) UpdateHash(tx *api.TransactionExtention) error
UpdateHash after local changes
func (*Client) UpdateSettingContract ¶ added in v1.0.3
func (g *Client) UpdateSettingContract(ctx context.Context, from, contractAddress string, value int64) (*api.TransactionExtention, error)
UpdateSettingContract change contract owner consumption ratio
func (*Client) UpdateWitness ¶ added in v1.0.3
func (g *Client) UpdateWitness(ctx context.Context, from, urlStr string) (*api.TransactionExtention, error)
UpdateWitness change URL info
func (*Client) VoteWitnessAccount ¶ added in v1.0.3
func (g *Client) VoteWitnessAccount(ctx context.Context, from string, witnessMap map[string]int64) (*api.TransactionExtention, error)
VoteWitnessAccount change account vote
func (*Client) WithdrawBalance ¶ added in v1.0.3
func (g *Client) WithdrawBalance(ctx context.Context, from string) (*api.TransactionExtention, error)
WithdrawBalance rewards from account
func (*Client) WithdrawExpireUnfreeze ¶ added in v1.0.3
func (g *Client) WithdrawExpireUnfreeze(ctx context.Context, from string, timestamp int64) (*api.TransactionExtention, error)
WithdrawExpireUnfreeze from base58 address