Documentation
¶
Index ¶
- Constants
- func AccountGetInfoURL(url string, address string) string
- func AccountGetMetadataURL(url string, address string, key string) string
- func BlockGetInfoURL(url string, blockNumber int64) string
- func BlockGetLatestInfoURL(url string) string
- func BlockGetLatestValidatorsURL(url string) string
- func BlockGetNumberURL(url string) string
- func BlockGetTransactionsURL(url string, blockNumber int64) string
- func BlockGetValidatorsURL(url string, blockNumber int64) string
- func ContractCallURL(url string) string
- func GetOperationType(operationType int) string
- func GetTxCacheData(url string, hash string) string
- func GetTxCacheSize(url string) string
- func PriTxReceive(url string, priTxHash string) string
- func PriTxReceiveRaw(url string, priTxHash string) string
- func PriTxSend(url string) string
- func PriTxStoreRaw(url string) string
- func PrivatecontractCallURL(url string) string
- func TransactionEvaluationFee(url string) string
- func TransactionGetInfoURL(url string, hash string) string
- func TransactionSubmitURL(url string) string
Constants ¶
View Source
const ( METADATA_KEY_MIN int = 1 METADATA_KEY_MAX int = 1024 METADATA_VALUE_MAX int = 256000 HASH_HEX_LENGTH int = 64 OPT_TYPE_MIN int = 0 OPT_TYPE_MAX int = 2 // 交易默认值 GAS_PRICE int64 = 100 FEE_LIMIT int64 = 1000000 // 合约查询类型 CONTRACT_QUERY_OPT_TYPE int = 2 // 账号参数 VERSION int64 = 0 SUCCESS int = 0 ERRORCODE int = 4 INIT_NONCE int64 = 0 INIT_ZERO int64 = 0 INIT_ONE int64 = 1 INIT_ZERO_L int64 = 0 INIT_ONE_L int64 = 1 // CONTRACT_TYPE_EVM 合约类型evm合约 CONTRACT_TYPE_EVM int = 1 // DDO_CONTRACT ... DDO_CONTRACT string = "did:bid:efspy6btdcuzP5BH2N899Ycti5Sd7n3z" )
View Source
const ( // UNKNOWN Unknown operation UNKNOWN = 0 // ACCOUNT_ACTIVATE Activate an account ACCOUNT_ACTIVATE = 1 // ACCOUNT_SET_METADATA Set metadata ACCOUNT_SET_METADATA = 2 // ACCOUNT_SET_PRIVILEGE Set privilege ACCOUNT_SET_PRIVILEGE = 3 // GAS_SEND Send gas GAS_SEND = 6 // CONTRACT_CREATE Create contract CONTRACT_CREATE = 13 // CONTRACT_INVOKE Invoke contract by sending CONTRACT_INVOKE = 15 // PRIVATE_CONTRACT_CREATE Create Private Contract PRIVATE_CONTRACT_CREATE = 17 // PRIVATE_CONTRACT_CALL Call Private Contract PRIVATE_CONTRACT_CALL = 18 )
OperationType
Variables ¶
This section is empty.
Functions ¶
func AccountGetInfoURL ¶
func AccountGetMetadataURL ¶
func BlockGetInfoURL ¶
func BlockGetLatestInfoURL ¶
func BlockGetNumberURL ¶
func BlockGetTransactionsURL ¶
func BlockGetValidatorsURL ¶
func ContractCallURL ¶
func GetOperationType ¶
func GetTxCacheData ¶
func GetTxCacheSize ¶
func PriTxReceive ¶
func PriTxReceiveRaw ¶
func PriTxStoreRaw ¶
func PrivatecontractCallURL ¶
func TransactionGetInfoURL ¶
func TransactionSubmitURL ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.