代码拉取完成,页面将自动刷新
package base
type Chain interface {
MainToken() Token
BalanceOfAddress(address string) (*Balance, error)
BalanceOfPublicKey(publicKey string) (*Balance, error)
BalanceOfAccount(account Account) (*Balance, error)
// Send the raw transaction on-chain
// @return the hex hash string
SendRawTransaction(signedTx string) (string, error)
// Send the signed transaction on-chain
// @return the hex hash string
SendSignedTransaction(signedTxn SignedTransaction) (*OptionalString, error)
// Fetch transaction details through transaction hash
FetchTransactionDetail(hash string) (*TransactionDetail, error)
// Fetch transaction status through transaction hash
FetchTransactionStatus(hash string) TransactionStatus
// Batch fetch the transaction status, the hash list and the return value,
// which can only be passed as strings separated by ","
// @param hashListString The hash of the transactions to be queried in batches, a string concatenated with ",": "hash1,hash2,hash3"
// @return Batch transaction status, its order is consistent with hashListString: "status1,status2,status3"
BatchFetchTransactionStatus(hashListString string) string
// Most chains can estimate the fee directly to the transaction object
// **But two chains don't work: `aptos`, `starcoin`**
//EstimateTransactionFee(transaction Transaction) (fee *OptionalString, err error)
// All chains can call this method to estimate the gas fee.
// **Chain `aptos`, `starcoin` must pass in publickey**
//EstimateTransactionFeeUsePublicKey(transaction Transaction, pubkey string) (fee *OptionalString, err error)
// -----------------------------
// polka
//GetSignDataFromChain(t *Transaction, walletAddress string) ([]byte, error)
//
//EstimateFeeForTransaction(transaction *Transaction) (s string, err error)
//FetchScriptHashForMiniX(transferTo, amount string) (*MiniXScriptHash, error)
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。