response

package
v0.0.0-...-60962e5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2023 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountActivateResponse

type AccountActivateResponse struct {
	BIFBaseResponse
	Result BIFBaseOperationResult `json:"result"`
}

type BIFAccountActiviateInfo

type BIFAccountActiviateInfo struct {
	DestAddress string            `json:"dest_address"`
	Contract    BIFContractInfo   `json:"contract"`
	Priv        BIFPriv           `json:"priv"`
	Metadatas   []BIFMetadataInfo `json:"metadatas"`
	InitBalance int64             `json:"init_balance"`
	InitInput   string            `json:"init_input"`
}

type BIFAccountCreateAccountResult

type BIFAccountCreateAccountResult struct {
	Hash string `json:"hash"`
}

type BIFAccountGetBalanceResponse

type BIFAccountGetBalanceResponse struct {
	BIFBaseResponse
	Result BIFAccountGetBalanceResult `json:"result"`
}

BIFAccountGetBalanceResponse 获取指定账户的星火令的余额返回体

type BIFAccountGetBalanceResult

type BIFAccountGetBalanceResult struct {
	Balance int64 `json:"balance"` // 余额
}

type BIFAccountGetInfoResponse

type BIFAccountGetInfoResponse struct {
	BIFBaseResponse
	Result BIFAccountGetInfoResult `json:"result"`
}

BIFAccountGetInfoResponse 获取指定的账户信息返回体

type BIFAccountGetInfoResult

type BIFAccountGetInfoResult struct {
	Address string `json:"address"` // 账户地址
	Balance int64  `json:"balance"` // 账户余额,单位PT,1 星火令 = 10^8 PT, 必须大于0
	Nonce   int64  `json:"nonce"`   // 账户交易序列号,必须大于0
}

type BIFAccountGetMetadatasResponse

type BIFAccountGetMetadatasResponse struct {
	BIFBaseResponse
	Result BIFAccountGetMetadatasResult `json:"result"`
}

BIFAccountGetMetadatasResponse 获取指定账户的metadata信息返回体

type BIFAccountGetMetadatasResult

type BIFAccountGetMetadatasResult struct {
	Metadatas []BIFMetadataInfo `json:"metadatas"`
}

type BIFAccountGetNonceResponse

type BIFAccountGetNonceResponse struct {
	BIFBaseResponse
	Result BIFAccountGetNonceResult `json:"result"`
}

BIFAccountGetNonceResponse 获取指定账户的nonce值返回体

type BIFAccountGetNonceResult

type BIFAccountGetNonceResult struct {
	Nonce int64 `json:"nonce"`
}

type BIFAccountPrivResponse

type BIFAccountPrivResponse struct {
	BIFBaseResponse
	Result BIFAccountPrivResult `json:"result"`
}

BIFAccountPrivResponse 获取账户权限返回体

type BIFAccountPrivResult

type BIFAccountPrivResult struct {
	Address string  `json:"address"` // 账户地址
	Priv    BIFPriv `json:"priv"`    // 账户权限
}

type BIFAccountSetMetadataInfo

type BIFAccountSetMetadataInfo struct {
	Key        string `json:"key"`
	Value      string `json:"value"`
	Version    int64  `json:"version"`
	DeleteFlag bool   `json:"delete_flag"`
}

type BIFAccountSetMetadataOperationResponse

type BIFAccountSetMetadataOperationResponse struct {
	BIFBaseResponse
	Result BIFBaseOperationResult `json:"result"`
}

type BIFAccountSetMetadataResult

type BIFAccountSetMetadataResult struct {
	Hash string `json:"hash"` // 交易hash
}

type BIFAccountSetMetadatasResponse

type BIFAccountSetMetadatasResponse struct {
	BIFBaseResponse
	Result BIFAccountSetMetadataResult `json:"result"`
}

BIFAccountSetMetadatasResponse 设置metadatas返回体

type BIFAccountSetPrivilegeInfo

type BIFAccountSetPrivilegeInfo struct {
	MasterWeight   string             `json:"master_weight"`
	Signers        []BIFSigner        `json:"signers"`
	TxThreshold    string             `json:"tx_threshold"`
	TypeThresholds []BIFTypeThreshold `json:"type_thresholds"`
}

type BIFAccountSetPrivilegeOperationResponse

type BIFAccountSetPrivilegeOperationResponse struct {
	BIFBaseResponse
	Result BIFAccountSetPrivilegeOperationResult `json:"result"`
}

type BIFAccountSetPrivilegeOperationResult

type BIFAccountSetPrivilegeOperationResult struct {
	Operation *proto.Operation
}

type BIFAccountSetPrivilegeResponse

type BIFAccountSetPrivilegeResponse struct {
	BIFBaseResponse
	Result BIFAccountSetPrivilegeResult `json:"result"`
}

BIFAccountSetPrivilegeResponse 设置权限返回体

type BIFAccountSetPrivilegeResult

type BIFAccountSetPrivilegeResult struct {
	Hash string `json:"hash"` // 交易hash
}

type BIFBaseOperationResult

type BIFBaseOperationResult struct {
	Operation *proto.Operation `json:"operation"`
}

type BIFBaseResponse

type BIFBaseResponse struct {
	ErrorCode int    `json:"error_code"`
	ErrorDesc string `json:"error_desc"`
}

BIFBaseResponse SDK响应返回结构体

type BIFBlockGetInfoResponse

type BIFBlockGetInfoResponse struct {
	BIFBaseResponse
	Result BIFBlockGetInfoResult `json:"result"`
}

BIFBlockGetInfoResponse 获取指定区块信息响应体

type BIFBlockGetInfoResult

type BIFBlockGetInfoResult struct {
	Header BIFBlockHeader `json:"header"` // 区块信息
}

type BIFBlockGetLatestInfoResponse

type BIFBlockGetLatestInfoResponse struct {
	BIFBaseResponse
	Result BIFBlockGetLatestInfoResult `json:"result"`
}

BIFBlockGetLatestInfoResponse 获取最新区块信息响应体

type BIFBlockGetLatestInfoResult

type BIFBlockGetLatestInfoResult struct {
	Header BIFBlockHeader `json:"header"` // 区块信息
}

type BIFBlockGetLatestValidatorsResponse

type BIFBlockGetLatestValidatorsResponse struct {
	BIFBaseResponse
	Result BIFBlockGetValidatorsResult `json:"result"`
}

BIFBlockGetLatestValidatorsResponse 获取最新区块中所有验证节点数响应体

type BIFBlockGetLatestValidatorsResult

type BIFBlockGetLatestValidatorsResult struct {
	Validators []string `json:"validators"` // 验证节点列表
}

type BIFBlockGetNumberResponse

type BIFBlockGetNumberResponse struct {
	BIFBaseResponse
	Result BIFBlockGetNumberResult `json:"result"`
}

BIFBlockGetNumberResponse ...

type BIFBlockGetNumberResult

type BIFBlockGetNumberResult struct {
	Header BIFBlockNumber `json:"header"` // 区块头
}

type BIFBlockGetTransactionsResponse

type BIFBlockGetTransactionsResponse struct {
	BIFBaseResponse
	Result BIFBlockGetTransactionsResult `json:"result"`
}

BIFBlockGetTransactionsResponse 查询指定区块高度下的所有交易响应体

type BIFBlockGetTransactionsResult

type BIFBlockGetTransactionsResult struct {
	TotalCount   int64                   `json:"total_count"`  // 返回的总交易数
	Transactions []BIFTransactionHistory `json:"transactions"` // 交易内容
}

type BIFBlockGetValidatorsResponse

type BIFBlockGetValidatorsResponse struct {
	BIFBaseResponse
	Result BIFBlockGetValidatorsResult `json:"result"`
}

BIFBlockGetValidatorsResponse 获取指定区块中所有验证节点数响应体

type BIFBlockGetValidatorsResult

type BIFBlockGetValidatorsResult struct {
	Validators []string `json:"validators"` // 验证节点列表
}

type BIFBlockHeader

type BIFBlockHeader struct {
	ConfirmTime int64 `json:"close_time"` // 区块确认时间
	Number      int64 `json:"seq"`        // 区块高度
	TxCount     int64 `json:"tx_count"`   // 交易总量
	Version     int64 `json:"version"`    // 区块版本
}

BIFBlockHeader 区块信息

type BIFBlockNumber

type BIFBlockNumber struct {
	BlockNumber int64 `json:"seq"` // 最新的区块高度,对应底层字段seq
}

BlockHeader 区块头

type BIFContractCallEvmResponse

type BIFContractCallEvmResponse struct {
	BIFBaseResponse
	Result BIFContractCallEvmResult `json:"result"`
}

BIFContractCallEvmResponse evm合约查询接口响应体

type BIFContractCallEvmResult

type BIFContractCallEvmResult struct {
	QueryRets []interface{} `json:"query_rets"` // 查询结果集
}

type BIFContractCallJsResponse

type BIFContractCallJsResponse struct {
	BIFBaseResponse
	Result BIFContractCallJsResult `json:"result"`
}

BIFContractCallJsResponse js合约查询接口响应体

type BIFContractCallJsResult

type BIFContractCallJsResult struct {
	QueryRets []interface{} `json:"query_rets"` // 查询结果集
}

type BIFContractCallResponse

type BIFContractCallResponse struct {
	BIFBaseResponse
	Result interface{} `json:"result"`
}

BIFContractCallResponse 合约查询接口响应体

type BIFContractCheckValidResponse

type BIFContractCheckValidResponse struct {
	BIFBaseResponse
	Result BIFContractCheckValidResult `json:"result"`
}

BIFContractCheckValidResponse 检测合约账户的有效性返回体

type BIFContractCheckValidResult

type BIFContractCheckValidResult struct {
	IsValid bool `json:"is_valid"` // 是否有效
}

type BIFContractCreateOperationResponse

type BIFContractCreateOperationResponse struct {
	BIFBaseResponse
	Result BIFBaseOperationResult `json:"result"`
}

type BIFContractCreateResponse

type BIFContractCreateResponse struct {
	BIFBaseResponse
	Result BIFContractInvokeResult
}

BIFContractCreateResponse 创建合约响应体

type BIFContractGetAddressResponse

type BIFContractGetAddressResponse struct {
	BIFBaseResponse
	Result BIFContractGetAddressResult `json:"result"`
}

BIFContractGetAddressResponse 根据交易Hash查询合约地址响应体

type BIFContractGetAddressResult

type BIFContractGetAddressResult struct {
	ContractAddressInfos []ContractAddressInfo `json:"contract_address_infos"` // 合约地址列表
}

type BIFContractGetInfoResponse

type BIFContractGetInfoResponse struct {
	BIFBaseResponse
	Result BIFContractGetInfoResult `json:"result"`
}

BIFContractGetInfoResponse 查询合约代码响应体

type BIFContractGetInfoResult

type BIFContractGetInfoResult struct {
	Contract BIFContractInfo `json:"contract"` // 合约信息
}

type BIFContractInfo

type BIFContractInfo struct {
	Type    int    `json:"type"`    // 合约类型,默认0
	Payload string `json:"payload"` // 合约代码
}

BIFContractInfo 合约信息

type BIFContractInvokeOperationResponse

type BIFContractInvokeOperationResponse struct {
	BIFBaseResponse
	Result BIFBaseOperationResult `json:"result"`
}

type BIFContractInvokeResponse

type BIFContractInvokeResponse struct {
	BIFBaseResponse
	Result BIFContractInvokeResult `json:"result"`
}

BIFContractInvokeResponse 合约调用响应体

type BIFContractInvokeResult

type BIFContractInvokeResult struct {
	Hash string `json:"hash"` // 交易hash
}

type BIFCreateAccountResponse

type BIFCreateAccountResponse struct {
	BIFBaseResponse
	Result BIFAccountCreateAccountResult `json:"result"`
}

type BIFGasSendInfo

type BIFGasSendInfo struct {
	DestAddress string `json:"dest_address"`
	Amount      int64  `json:"amount"`
	Input       string `json:"input"`
}

type BIFGasSendOperationResponse

type BIFGasSendOperationResponse struct {
	BIFBaseResponse
	Result BIFBaseOperationResult `json:"result"`
}

type BIFLogInfo

type BIFLogInfo struct {
	Topic string   `json:"topic"`
	Datas []string `json:"datas"`
}

type BIFMetadataInfo

type BIFMetadataInfo struct {
	Key     string `json:"key"`     // metadata的关键词
	Value   string `json:"value"`   // metadata的内容
	Version int64  `json:"version"` // metadata的版本
}

BIFMetadataInfo 账户信息

type BIFOperation

type BIFOperation struct {
	Type          int                        `json:"type"`
	SourceAddress string                     `json:"source_address"`
	Metadata      string                     `json:"metadata"`
	CreateAccount BIFAccountActiviateInfo    `json:"create_account"`
	SendGas       BIFGasSendInfo             `json:"pay_coin"` // pay_coin
	SetMetadata   BIFAccountSetMetadataInfo  `json:"set_metadata"`
	SetPrivilege  BIFAccountSetPrivilegeInfo `json:"set_privilege"`
	Log           BIFLogInfo                 `json:"log"`
}

type BIFOperationFormat

type BIFOperationFormat struct {
	Type          string                     `json:"type"`
	SourceAddress string                     `json:"source_address"`
	Metadata      string                     `json:"metadata"`
	CreateAccount BIFAccountActiviateInfo    `json:"create_account"`
	SendGas       BIFGasSendInfo             `json:"pay_coin"`
	SetMetadata   BIFAccountSetMetadataInfo  `json:"set_metadata"`
	SetPrivilege  BIFAccountSetPrivilegeInfo `json:"set_privilege"`
	Log           BIFLogInfo                 `json:"log"`
}

type BIFPriv

type BIFPriv struct {
	MasterWeight int64        `json:"master_weight"`
	Signers      []BIFSigner  `json:"signers"`
	Thresholds   BIFThreshold `json:"thresholds"` // thresholds
}

type BIFPrivateContractCallOperationResponse

type BIFPrivateContractCallOperationResponse struct {
	BIFBaseResponse
	Result BIFBaseOperationResult `json:"result"`
}

type BIFPrivateContractCreateOperationResponse

type BIFPrivateContractCreateOperationResponse struct {
	BIFBaseResponse
	Result BIFBaseOperationResult `json:"result"`
}

type BIFPrivateTransactionSendResponse

type BIFPrivateTransactionSendResponse struct {
	BIFBaseResponse
	PriTxHash string `json:"pri_tx_hash"`
}

type BIFRadioTransactionResponse

type BIFRadioTransactionResponse struct {
	BIFBaseResponse
	Result BIFRadioTransactionResult `json:"result"`
}

type BIFRadioTransactionResult

type BIFRadioTransactionResult struct {
	Hash string `json:"hash"`
}

type BIFSignature

type BIFSignature struct {
	SignData  string `json:"sign_data"`
	PublicKey string `json:"public_key"`
}

type BIFSigner

type BIFSigner struct {
	Address string `json:"address"`
	Weight  int64  `json:"weight"`
}

type BIFTestTransactionFees

type BIFTestTransactionFees struct {
	TransactionFees BIFTransactionFees `json:"transaction"`
}

type BIFTestTx

type BIFTestTx struct {
	TransactionEnv BIFTestTransactionFees `json:"transaction_env"`
}

type BIFThreshold

type BIFThreshold struct {
	TxThreshold    int64              `json:"tx_threshold"`
	TypeThresholds []BIFTypeThreshold `json:"type_thresholds"`
}

type BIFTransactionCacheInfo

type BIFTransactionCacheInfo struct {
	Hash         string             `json:"hash"`
	IncomingTime int64              `json:"incoming_time"`
	Status       string             `json:"status"`
	Transaction  BIFTransactionInfo `json:"transaction"`
}

type BIFTransactionCacheResponse

type BIFTransactionCacheResponse struct {
	BIFBaseResponse
	Result BIFTransactionCacheResult `json:"result"`
}

type BIFTransactionCacheResult

type BIFTransactionCacheResult struct {
	Transactions []BIFTransactionCacheInfo `json:"transactions"`
}

type BIFTransactionEvaluateFeeResponse

type BIFTransactionEvaluateFeeResponse struct {
	BIFBaseResponse
	Result BIFTransactionEvaluateFeeResult `json:"result"`
}

type BIFTransactionEvaluateFeeResult

type BIFTransactionEvaluateFeeResult struct {
	Txs []BIFTestTx `json:"txs"`
}

type BIFTransactionFees

type BIFTransactionFees struct {
	FeeLimit int64 `json:"fee_limit"`
	GasPrice int64 `json:"gas_price"`
}

type BIFTransactionGasSendResponse

type BIFTransactionGasSendResponse struct {
	BIFBaseResponse
	Result BIFTransactionGasSendResult `json:"result"`
}

BIFTransactionGasSendResponse 发送交易响应体

type BIFTransactionGasSendResult

type BIFTransactionGasSendResult struct {
	Hash string `json:"hash"` // 交易hash
}

type BIFTransactionGetBidResponse

type BIFTransactionGetBidResponse struct {
	BIFBaseResponse
	Result BIFTransactionGetBidResult `json:"result"`
}

type BIFTransactionGetBidResult

type BIFTransactionGetBidResult struct {
	Bids []string `json:"bids"`
}

type BIFTransactionGetInfoResponse

type BIFTransactionGetInfoResponse struct {
	BIFBaseResponse
	Result BIFTransactionGetInfoResult `json:"result"`
}

BIFTransactionGetInfoResponse 根据交易hash查询交易响应体

type BIFTransactionGetInfoResult

type BIFTransactionGetInfoResult struct {
	TotalCount   int64                   `json:"total_count"`  // 返回的总交易数
	Transactions []BIFTransactionHistory `json:"transactions"` // 交易内容
}

type BIFTransactionGetTxCacheSizeResponse

type BIFTransactionGetTxCacheSizeResponse struct {
	BIFBaseResponse
	Result BIFTransactionGetTxCacheSizeResult `json:"result"`
}

type BIFTransactionGetTxCacheSizeResult

type BIFTransactionGetTxCacheSizeResult struct {
	QueueSize int64 `json:"queue_size"`
}

type BIFTransactionHistory

type BIFTransactionHistory struct {
	Fee              int64              `json:"actual_fee"` // 交易实际费用
	ConfirmTime      int64              `json:"close_time"` // 交易确认时间
	ErrorCode        int64              `json:"error_code"` // 交易错误码
	ErrorDesc        string             `json:"error_desc"` // 交易描述
	Hash             string             `json:"hash"`       // 交易hash
	LedgerSeq        int64              `json:"ledger_seq"` // 区块序列号
	TxSize           int64              `json:"tx_size"`
	Signatures       []BIFSignature     `json:"signatures"`
	ContractTxHashes []string           `json:"contract_tx_hashes"`
	Transaction      BIFTransactionInfo `json:"transaction"` // 交易内容列表
}

BIFTransactionHistory 交易内容

type BIFTransactionInfo

type BIFTransactionInfo struct {
	SourceAddress string         `json:"source_address"`
	FeeLimit      int64          `json:"fee_limit"`
	GasPrice      int64          `json:"gas_price"`
	Nonce         int64          `json:"nonce"`
	Metadata      string         `json:"metadata"`
	Operations    []BIFOperation `json:"operations"`
	ChainId       int64          `json:"chain_id"`
}

type BIFTransactionParseBlobResponse

type BIFTransactionParseBlobResponse struct {
	BIFBaseResponse
	Result BIFTransactionParseBlobResult `json:"result"`
}

BIFTransactionParseBlobResponse ...

type BIFTransactionParseBlobResult

type BIFTransactionParseBlobResult struct {
	SourceAddress string               `json:"source_address"`
	FeeLimit      int64                `json:"fee_limit"`
	GasPrice      int64                `json:"gas_price"`
	Nonce         int64                `json:"nonce"`
	Operations    []BIFOperationFormat `json:"operations"`
	ChainId       int64                `json:"chain_id"`
	Remarks       string               `json:"remarks"`
}

type BIFTransactionPrivateContractCallResponse

type BIFTransactionPrivateContractCallResponse struct {
	BIFBaseResponse
	Result BIFTransactionPrivateContractCallResult `json:"result"`
}

BIFTransactionPrivateContractCallResponse 私有化交易-合约调用响应体

type BIFTransactionPrivateContractCallResult

type BIFTransactionPrivateContractCallResult struct {
	Hash string `json:"hash"` // 交易hash
}

type BIFTransactionPrivateContractCreateResponse

type BIFTransactionPrivateContractCreateResponse struct {
	BIFBaseResponse
	Result BIFTransactionPrivateContractCreateResult `json:"result"`
}

BIFTransactionPrivateContractCreateResponse 私有化交易-合约创建响应体

type BIFTransactionPrivateContractCreateResult

type BIFTransactionPrivateContractCreateResult struct {
	Hash string `json:"hash"` // 交易hash
}

type BIFTransactionSerializeResponse

type BIFTransactionSerializeResponse struct {
	BIFBaseResponse
	Result BIFTransactionSerializeResult `json:"result"`
}

type BIFTransactionSerializeResult

type BIFTransactionSerializeResult struct {
	TransactionBlob string `json:"transaction_blob"`
	Hash            string `json:"hash"`
}

type BIFTransactionSubmitResponse

type BIFTransactionSubmitResponse struct {
	BIFBaseResponse
	Result BIFTransactionSubmitResult `json:"result"`
}

type BIFTransactionSubmitResult

type BIFTransactionSubmitResult struct {
	Hash string `json:"hash"`
}

type BIFTypeThreshold

type BIFTypeThreshold struct {
	Type      int   `json:"type"`
	Threshold int64 `json:"threshold"`
}

type ContractAddressInfo

type ContractAddressInfo struct {
	ContractAddress string `json:"contract_address"` // 合约地址
	OperationIndex  int    `json:"operation_index"`  // 所在操作的下标
}

ContractAddressInfo 合约信息

type GetBidByHashInput

type GetBidByHashInput struct {
	Method string                  `json:"method"`
	Params GetBidByHashInputParams `json:"params"`
}

type GetBidByHashInputParams

type GetBidByHashInputParams struct {
	Document InputParamsDocument `json:"document"`
}

type InputParamsDocument

type InputParamsDocument struct {
	Id string `json:"id"`
}

type PrivateContractCallOperationResponse

type PrivateContractCallOperationResponse struct {
	BIFBaseResponse
	Result BIFBaseOperationResult `json:"result"`
}

type QueryDataResult

type QueryDataResult struct {
	NodeCount string `json:"nodeCount,omitempty"`
}

type QueryEvmResult

type QueryEvmResult struct {
	Data    string `json:"data"`
	Gasused int64  `json:"gasused"`
}

type QueryJsResult

type QueryJsResult struct {
	Type  string          `json:"type"`
	Value interface{}     `json:"value"`
	Data  QueryDataResult `json:"data"`
}

type QueryRetsEvmResult

type QueryRetsEvmResult struct {
	Result QueryEvmResult `json:"result"`
}

type QueryRetsJsResult

type QueryRetsJsResult struct {
	Result QueryJsResult `json:"result"`
}

type Signature

type Signature struct {
	SignData  int64 `json:"sign_data"`  // 签名后数据
	PublicKey int64 `json:"public_key"` // 公钥
	TxSize    int64 `json:"tx_size"`    // 交易大小
}

Signature 签名信息

type TransactionGetTxCacheSizeResponse

type TransactionGetTxCacheSizeResponse struct {
	QueueSize int64 `json:"queue_size"`
}

type TransactionInfo

type TransactionInfo struct {
	Signatures Signature `json:"signatures"` // 签名列表

}

TransactionInfo 交易内容列表

type TransactionSubmitResponse

type TransactionSubmitResponse struct {
	Results      []TransactionSubmitResult `json:"results"`
	SuccessCount int                       `json:"success_count"`
}

type TransactionSubmitResult

type TransactionSubmitResult struct {
	BIFBaseResponse
	Hash string `json:"hash"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL