Documentation ¶
Index ¶
- Constants
- type Brc20Detail
- type ConfirmRequestDetail
- type ExtraData
- type MpcCheckExtraInfo
- type MpcCheckRequestDetail
- type MpcCheckResponseData
- type MpcCheckTxInfo
- type MpcCheckVerifyRequest
- type MpcCheckVerifyRequestDetail
- type RequestDetail
- type TransactionNotify
- type VinList
- type VoutList
- type WithdrawNotifyRequestDetail
Constants ¶
View Source
const ( RequestTypeWithdrawal = 0 RequestTypeRecharge = 1 )
View Source
const ( MpcCheckActionApprove = "Approve" MpcCheckActionReject = "Reject" MpcCheckActionWait = "Wait" )
View Source
const ( WithdrawalActionApprove = "APPROVE" WithdrawalActionReject = "REJECT" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Brc20Detail ¶ added in v1.1.0
type Brc20Detail struct{}
type ConfirmRequestDetail ¶ added in v1.1.0
type ConfirmRequestDetail struct { Amount string `json:"amount"` APIRequestID string `json:"apiRequestId"` AssetID string `json:"assetId"` Brc20Detail struct{} `json:"brc20Detail"` ChainSymbol string `json:"chainSymbol"` Decimal int `json:"decimal"` Fee string `json:"fee"` From string `json:"from"` GasLimit string `json:"gasLimit"` GasPrice string `json:"gasPrice"` Note string `json:"note"` SinoID string `json:"sinoId"` To string `json:"to"` ToTag string `json:"toTag"` WalletID string `json:"walletId"` }
type MpcCheckExtraInfo ¶ added in v1.1.0
type MpcCheckRequestDetail ¶ added in v1.1.0
type MpcCheckRequestDetail struct { T int `json:"t,omitempty"` N int `json:"n,omitempty"` Cryptography string `json:"cryptography,omitempty"` PartyIDs []string `json:"party_ids,omitempty"` SignType string `json:"sign_type,omitempty" form:"sign_type"` TxInfo json.RawMessage `json:"tx_info,omitempty" form:"tx_info"` PublicKey string `json:"public_key,omitempty"` Path string `json:"path,omitempty"` Message string `json:"message,omitempty"` Coin string `json:"coin,omitempty"` FromAddress string `json:"from_address,omitempty"` ToAddress string `json:"to_address,omitempty"` Amount string `json:"amount,omitempty"` Fee string `json:"fee,omitempty"` GasPrice string `json:"gas_price,omitempty"` GasLimit string `json:"gas_limit,omitempty"` Signature string `json:"signature,omitempty"` APIRequestID string `json:"apiRequestId"` }
type MpcCheckResponseData ¶ added in v1.1.0
type MpcCheckTxInfo ¶ added in v1.1.0
type MpcCheckTxInfo struct { Amount string `json:"amount"` APIRequestID string `json:"apiRequestId"` AssetID string `json:"assetId"` ChainSymbol string `json:"chainSymbol"` CurInputID int `json:"curInputId"` ExtraData ExtraData `json:"extraData"` Fee string `json:"fee"` FeeRate string `json:"feeRate"` From string `json:"from"` GasLimit string `json:"gasLimit"` GasPrice string `json:"gasPrice"` Note string `json:"note"` RequestID string `json:"requestId"` To string `json:"to"` ToTag string `json:"toTag"` VaultID string `json:"vaultId"` WalletID string `json:"walletId"` }
type MpcCheckVerifyRequest ¶ added in v1.1.0
type MpcCheckVerifyRequest struct { CallbackID string `json:"callback_id,omitempty"` RequestType string `json:"request_type,omitempty"` MpcCheckVerifyRequestDetail `json:"request_detail,omitempty"` MpcCheckExtraInfo `json:"extra_info,omitempty"` }
type MpcCheckVerifyRequestDetail ¶ added in v1.1.0
type MpcCheckVerifyRequestDetail struct { T int `json:"t,omitempty"` N int `json:"n,omitempty"` Cryptography string `json:"cryptography,omitempty"` PartyIDs []string `json:"party_ids,omitempty"` SignType string `json:"sign_type,omitempty" form:"sign_type"` PublicKey string `json:"public_key,omitempty"` Path string `json:"path,omitempty"` Message string `json:"message,omitempty"` Signature string `json:"signature,omitempty"` TxInfo json.RawMessage `json:"tx_info,omitempty" form:"tx_info"` }
type RequestDetail ¶
type RequestDetail struct { SinoID string `json:"sinoId"` TxHash string `json:"txHash"` BlockHash string `json:"blockHash"` ConfirmNumber int `json:"confirmNumber"` WalletID string `json:"walletId"` ChainSymbol string `json:"chainSymbol"` AssetID string `json:"assetId"` TxDirection int `json:"txDirection"` Note string `json:"note"` Nonce int `json:"nonce"` From string `json:"from"` To string `json:"to"` ToTag string `json:"toTag"` Amount string `json:"amount"` Decimal int `json:"decimal"` Fee string `json:"fee"` FeeAsset string `json:"feeAsset"` FeeDecimal int `json:"feeDecimal"` FeeAssetDecimal int `json:"feeAssetDecimal"` UsedFee string `json:"usedFee"` GasPrice string `json:"gasPrice"` GasLimit string `json:"gasLimit"` State int `json:"state"` }
type TransactionNotify ¶
type VinList ¶ added in v1.1.0
type VinList struct { Address string `json:"address"` Amount int `json:"amount"` BlockHash string `json:"blockHash"` BlockHeight int `json:"blockHeight"` BlockState int `json:"blockState"` BlockTimeStamp int `json:"blockTimeStamp"` Currency string `json:"currency"` ID int `json:"id"` State int `json:"state"` Tag string `json:"tag"` TransactionHash string `json:"transactionHash"` VoutIndex int `json:"voutIndex"` }
type WithdrawNotifyRequestDetail ¶ added in v1.1.0
type WithdrawNotifyRequestDetail struct { SinoID string `json:"sinoId"` TxHash string `json:"txHash"` BlockHash string `json:"blockHash"` ConfirmNumber int `json:"confirmNumber"` WalletID string `json:"walletId"` ChainSymbol string `json:"chainSymbol"` AssetID string `json:"assetId"` TxDirection int `json:"txDirection"` Note string `json:"note"` Nonce int `json:"nonce"` From string `json:"from"` To string `json:"to"` ToTag string `json:"toTag"` Amount string `json:"amount"` Decimal int `json:"decimal"` Fee string `json:"fee"` FeeAsset string `json:"feeAsset"` FeeDecimal int `json:"feeDecimal"` FeeAssetDecimal int `json:"feeAssetDecimal"` UsedFee string `json:"usedFee"` GasPrice string `json:"gasPrice"` GasLimit string `json:"gasLimit"` State int `json:"state"` APIRequestID string `json:"apiRequestId"` Brc20Detail Brc20Detail `json:"brc20Detail"` }
Click to show internal directories.
Click to hide internal directories.