Versions in this module Expand all Collapse all v0 v0.7.2 Apr 16, 2020 v0.7.1 Apr 9, 2020 Changes in this version + const MAX_REQUEST_BODY_SIZE + const MAX_SEARCH_HEIGHT + func BuildNeoVMInvokeCode(smartContractAddress common.Address, params []interface{}) ([]byte, error) + func GetAddress(str string) (common.Address, error) + func GetAllowance(asset string, from, to common.Address) (string, error) + func GetBlockTransactions(block *types.Block) interface + func GetContractAllowance(cVersion byte, contractAddr, fromAddr, toAddr common.Address) (uint64, error) + func GetContractBalance(cVersion byte, contractAddres []common.Address, accAddr common.Address, ...) ([]uint64, uint32, error) + func GetGasPrice() (map[string]interface{}, error) + func NewNativeInvokeTransaction(gasPirce, gasLimit uint64, contractAddress common.Address, version byte, ...) (*types.MutableTransaction, error) + func NewNeovmInvokeTransaction(gasPrice, gasLimit uint64, contractAddress common.Address, ...) (*types.MutableTransaction, error) + func NewSmartContractTransaction(gasPrice, gasLimit uint64, invokeCode []byte) (*types.MutableTransaction, error) + func SendTxToPool(txn *types.Transaction) (ontErrors.ErrCode, string) + type AmountMap struct + Key common.Uint256 + Value common.Fixed64 + type BalanceOfRsp struct + Gas string + Height string + func GetBalance(address common.Address) (*BalanceOfRsp, error) + type BlockHead struct + BlockRoot string + Bookkeepers []string + ConsensusData uint64 + ConsensusPayload string + Hash string + Height uint32 + NextBookkeeper string + PrevBlockHash string + SigData []string + Timestamp uint32 + TransactionsRoot string + Version uint32 + type BlockInfo struct + Hash string + Header *BlockHead + Size int + Transactions []*Transactions + func GetBlockInfo(block *types.Block) BlockInfo + type BookKeepingInfo struct + Nonce uint64 + type BookkeeperInfo struct + Action string + Controller string + Issuer string + PubKey string + type ConsensusInfo struct + type DataFileInfo struct + Filename string + IPFSPath string + Issuer string + Note string + type DeployCodeInfo struct + Author string + Code string + CodeVersion string + Description string + Email string + Name string + VmType byte + type ExecuteNotify struct + GasConsumed uint64 + Notify []NotifyEventInfo + State byte + TxHash string + func GetExecuteNotify(obj *event.ExecuteNotify) (map[string]bool, ExecuteNotify) + type Fee struct + Amount common.Fixed64 + Payer string + type InvokeCodeInfo struct + Code string + type LogEventArgs struct + ContractAddress string + Message string + TxHash string + func GetLogEvent(obj *event.LogEventArgs) (map[string]bool, LogEventArgs) + type MerkleProof struct + BlockHeight uint32 + CurBlockHeight uint32 + CurBlockRoot string + TargetHashes []string + TransactionsRoot string + Type string + type NodeInfo struct + Height uint32 + ID uint64 + NodePort uint16 + NodeState uint + NodeTime int64 + NodeType uint64 + NodeVersion uint32 + Relay bool + TxnCnt []uint32 + type NotifyEventInfo struct + ContractAddress string + States interface{} + type PayloadInfo interface + func TransPayloadToHex(p types.Payload) PayloadInfo + type PreExecuteResult struct + Gas uint64 + Notify []NotifyEventInfo + Result interface{} + State byte + func ConvertPreExecuteResult(obj *cstate.PreExecResult) PreExecuteResult + type PrivacyPayloadInfo struct + EncryptAttr string + EncryptType uint8 + Payload string + PayloadType uint8 + type RecordInfo struct + RecordData string + RecordType string + type Sig struct + M uint16 + PubKeys []string + SigData []string + type SyncStatus struct + ConnectCount uint32 + CurrentBlockHeight uint32 + MaxPeerBlockHeight uint64 + func GetSyncStatus() (SyncStatus, error) + type TXNAttrInfo struct + ErrCode int + Height uint32 + Type int + type TXNEntryInfo struct + State []TXNAttrInfo + type Transactions struct + Attributes []TxAttributeInfo + GasLimit uint64 + GasPrice uint64 + Hash string + Height uint32 + Nonce uint32 + Payer string + Payload PayloadInfo + Sigs []Sig + TxType types.TransactionType + Version byte + func TransArryByteToHexString(ptx *types.Transaction) *Transactions + type TxAttributeInfo struct + Data string + Usage types.TransactionAttributeUsage + type VoteInfo struct + PubKeys []string + Voter string