Documentation ¶
Index ¶
- Constants
- type AmopMessageContext
- type CSDK
- func (csdk *CSDK) BroadcastAmopMsg(topic string, data []byte)
- func (csdk *CSDK) Call(chanData *CallbackChan, to string, data string)
- func (csdk *CSDK) ChainID() string
- func (csdk *CSDK) Close()
- func (csdk *CSDK) CreateAndSendTransaction(chanData *CallbackChan, to string, data, extraData string, withProof bool) ([]byte, error)
- func (csdk *CSDK) CreateEncodedSignature(hash []byte) ([]byte, error)
- func (csdk *CSDK) CreateEncodedTransaction(transactionData, dataHash, signature []byte, attribute int32, extraData string) ([]byte, error)
- func (csdk *CSDK) CreateEncodedTransactionDataV1(blockLimit int64, to string, input []byte, abi string) ([]byte, []byte, error)
- func (csdk *CSDK) GetBlockByHash(chanData *CallbackChan, blockHash string, onlyHeader, onlyTxHash bool)
- func (csdk *CSDK) GetBlockByNumber(chanData *CallbackChan, blockNumber int64, onlyHeader, onlyTxHash bool)
- func (csdk *CSDK) GetBlockHashByNumber(chanData *CallbackChan, blockNumber int64)
- func (csdk *CSDK) GetBlockLimit() int
- func (csdk *CSDK) GetBlockNumber(chanData *CallbackChan)
- func (csdk *CSDK) GetCode(chanData *CallbackChan, address string)
- func (csdk *CSDK) GetConsensusStatus(chanData *CallbackChan)
- func (csdk *CSDK) GetGroupInfo(chanData *CallbackChan)
- func (csdk *CSDK) GetGroupInfoList(chanData *CallbackChan)
- func (csdk *CSDK) GetGroupList(chanData *CallbackChan)
- func (csdk *CSDK) GetGroupPeers(chanData *CallbackChan)
- func (csdk *CSDK) GetNodeInfo(chanData *CallbackChan, nodeID string)
- func (csdk *CSDK) GetObserverList(chanData *CallbackChan)
- func (csdk *CSDK) GetPbftView(chanData *CallbackChan)
- func (csdk *CSDK) GetPeers(chanData *CallbackChan)
- func (csdk *CSDK) GetPendingTxSize(chanData *CallbackChan)
- func (csdk *CSDK) GetSealerList(chanData *CallbackChan)
- func (csdk *CSDK) GetSyncStatus(chanData *CallbackChan)
- func (csdk *CSDK) GetSystemConfigByKey(chanData *CallbackChan, key string)
- func (csdk *CSDK) GetTotalTransactionCount(chanData *CallbackChan)
- func (csdk *CSDK) GetTransaction(chanData *CallbackChan, txHash string, withProof bool)
- func (csdk *CSDK) GetTransactionReceipt(chanData *CallbackChan, txHash string, withProof bool)
- func (csdk *CSDK) GroupID() string
- func (csdk *CSDK) PrivateKeyBytes() []byte
- func (csdk *CSDK) PublishAmopTopicMsg(chanData *CallbackChan, topic string, data []byte, timeout int)
- func (csdk *CSDK) RegisterBlockNotifier(chanData *CallbackChan)
- func (csdk *CSDK) SMCrypto() bool
- func (csdk *CSDK) SendAmopResponse(peer, seq string, data []byte)
- func (csdk *CSDK) SendEncodedTransaction(chanData *CallbackChan, encodedTransaction []byte, withProof bool) error
- func (csdk *CSDK) SetPrivateKey(privateKeyBytes []byte) error
- func (csdk *CSDK) SubscribeAmopTopic(chanData *CallbackChan, topic string)
- func (csdk *CSDK) SubscribeEvent(chanData *CallbackChan, params string) string
- func (csdk *CSDK) UnsubscribeAmopTopic(topic string)
- func (csdk *CSDK) UnsubscribeEvent(taskId string)
- func (csdk *CSDK) WASM() bool
- type CallbackChan
- type Response
Constants ¶
View Source
const C_SDK_ECDSA_CRYPTO = C.int(0)
View Source
const C_SDK_SM_CRYPTO = C.int(1)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AmopMessageContext ¶
type CSDK ¶
type CSDK struct {
// contains filtered or unexported fields
}
func NewSDKByConfigFile ¶
func (*CSDK) BroadcastAmopMsg ¶
func (*CSDK) CreateAndSendTransaction ¶
func (*CSDK) CreateEncodedSignature ¶
func (*CSDK) CreateEncodedTransaction ¶
func (*CSDK) CreateEncodedTransactionDataV1 ¶
func (*CSDK) GetBlockByHash ¶
func (csdk *CSDK) GetBlockByHash(chanData *CallbackChan, blockHash string, onlyHeader, onlyTxHash bool)
func (*CSDK) GetBlockByNumber ¶
func (csdk *CSDK) GetBlockByNumber(chanData *CallbackChan, blockNumber int64, onlyHeader, onlyTxHash bool)
func (*CSDK) GetBlockHashByNumber ¶
func (csdk *CSDK) GetBlockHashByNumber(chanData *CallbackChan, blockNumber int64)
func (*CSDK) GetBlockLimit ¶
func (*CSDK) GetBlockNumber ¶
func (csdk *CSDK) GetBlockNumber(chanData *CallbackChan)
func (*CSDK) GetCode ¶
func (csdk *CSDK) GetCode(chanData *CallbackChan, address string)
func (*CSDK) GetConsensusStatus ¶
func (csdk *CSDK) GetConsensusStatus(chanData *CallbackChan)
func (*CSDK) GetGroupInfo ¶
func (csdk *CSDK) GetGroupInfo(chanData *CallbackChan)
func (*CSDK) GetGroupInfoList ¶
func (csdk *CSDK) GetGroupInfoList(chanData *CallbackChan)
func (*CSDK) GetGroupList ¶
func (csdk *CSDK) GetGroupList(chanData *CallbackChan)
func (*CSDK) GetGroupPeers ¶
func (csdk *CSDK) GetGroupPeers(chanData *CallbackChan)
func (*CSDK) GetNodeInfo ¶
func (csdk *CSDK) GetNodeInfo(chanData *CallbackChan, nodeID string)
func (*CSDK) GetObserverList ¶
func (csdk *CSDK) GetObserverList(chanData *CallbackChan)
func (*CSDK) GetPbftView ¶
func (csdk *CSDK) GetPbftView(chanData *CallbackChan)
func (*CSDK) GetPeers ¶
func (csdk *CSDK) GetPeers(chanData *CallbackChan)
func (*CSDK) GetPendingTxSize ¶
func (csdk *CSDK) GetPendingTxSize(chanData *CallbackChan)
func (*CSDK) GetSealerList ¶
func (csdk *CSDK) GetSealerList(chanData *CallbackChan)
func (*CSDK) GetSyncStatus ¶
func (csdk *CSDK) GetSyncStatus(chanData *CallbackChan)
func (*CSDK) GetSystemConfigByKey ¶
func (csdk *CSDK) GetSystemConfigByKey(chanData *CallbackChan, key string)
func (*CSDK) GetTotalTransactionCount ¶
func (csdk *CSDK) GetTotalTransactionCount(chanData *CallbackChan)
func (*CSDK) GetTransaction ¶
func (csdk *CSDK) GetTransaction(chanData *CallbackChan, txHash string, withProof bool)
func (*CSDK) GetTransactionReceipt ¶
func (csdk *CSDK) GetTransactionReceipt(chanData *CallbackChan, txHash string, withProof bool)
func (*CSDK) PrivateKeyBytes ¶
func (*CSDK) PublishAmopTopicMsg ¶
func (csdk *CSDK) PublishAmopTopicMsg(chanData *CallbackChan, topic string, data []byte, timeout int)
func (*CSDK) RegisterBlockNotifier ¶
func (csdk *CSDK) RegisterBlockNotifier(chanData *CallbackChan)
func (*CSDK) SendAmopResponse ¶
func (*CSDK) SendEncodedTransaction ¶
func (csdk *CSDK) SendEncodedTransaction(chanData *CallbackChan, encodedTransaction []byte, withProof bool) error
func (*CSDK) SetPrivateKey ¶
SetPrivateKey set private key
func (*CSDK) SubscribeAmopTopic ¶
func (csdk *CSDK) SubscribeAmopTopic(chanData *CallbackChan, topic string)
func (*CSDK) SubscribeEvent ¶
func (csdk *CSDK) SubscribeEvent(chanData *CallbackChan, params string) string
event
func (*CSDK) UnsubscribeAmopTopic ¶
func (*CSDK) UnsubscribeEvent ¶
type CallbackChan ¶
type CallbackChan struct { Data chan Response Handler interface{} // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.