Documentation
¶
Index ¶
- func GenerateKeyPair() (string, string)
- func Hash256(s string) string
- func Hash256x2(s string) string
- func SortParams(params map[string]string) string
- type ApiError
- type ApiSigner
- type Client
- func (c Client) BatchNewDepositAddress(coin string, count int, nativeSegwit bool) (*simplejson.Json, *ApiError)
- func (c Client) BatchVerifyDepositAddress(coin string, addresses string) (*simplejson.Json, *ApiError)
- func (c Client) CheckLoopAddressDetails(coin string, address string, memo string) (*simplejson.Json, *ApiError)
- func (c Client) GetAccountInfo() (*simplejson.Json, *ApiError)
- func (c Client) GetAddressHistory(coin string) (*simplejson.Json, *ApiError)
- func (c Client) GetAddressHistoryWithPage(params map[string]string) (*simplejson.Json, *ApiError)
- func (c Client) GetCoinInfo(coin string, amount *big.Int) (*simplejson.Json, *ApiError)
- func (c Client) GetGasStationBalance() (*simplejson.Json, *ApiError)
- func (c Client) GetPendingTransaction(id string) (*simplejson.Json, *ApiError)
- func (c Client) GetPendingTransactions(params map[string]string) (*simplejson.Json, *ApiError)
- func (c Client) GetStakingHistory() (*simplejson.Json, *ApiError)
- func (c Client) GetStakingProductDetails(productId string, language string) (*simplejson.Json, *ApiError)
- func (c Client) GetStakingProductList(coin string, language string) (*simplejson.Json, *ApiError)
- func (c Client) GetStakings(coin string, language string) (*simplejson.Json, *ApiError)
- func (c Client) GetSupportedCoins() (*simplejson.Json, *ApiError)
- func (c Client) GetTransactionDetails(txId string) (*simplejson.Json, *ApiError)
- func (c Client) GetTransactionHistory(params map[string]string) (*simplejson.Json, *ApiError)
- func (c Client) GetTransactionsById(params map[string]string) (*simplejson.Json, *ApiError)
- func (c Client) GetTransactionsByRequestIds(requestIds string) (*simplejson.Json, *ApiError)
- func (c Client) GetTransactionsByTime(params map[string]string) (*simplejson.Json, *ApiError)
- func (c Client) GetTransactionsByTimeEx(params map[string]string) (*simplejson.Json, *ApiError)
- func (c Client) GetTransactionsByTxid(txid string) (*simplejson.Json, *ApiError)
- func (c Client) GetUnstakings(coin string) (*simplejson.Json, *ApiError)
- func (c Client) NewDepositAddress(coin string, nativeSegwit bool) (*simplejson.Json, *ApiError)
- func (c Client) QueryWithdrawInfo(requestId string) (*simplejson.Json, *ApiError)
- func (c Client) Request(method string, path string, params map[string]string) (*simplejson.Json, *ApiError)
- func (c Client) Stake(productId string, amount *big.Int) (*simplejson.Json, *ApiError)
- func (c Client) Unstake(productId string, amount *big.Int) (*simplejson.Json, *ApiError)
- func (c Client) VerifyDepositAddress(coin string, address string) (*simplejson.Json, *ApiError)
- func (c Client) VerifyEcc(message string, signature string) bool
- func (c Client) VerifyLoopAddressList(coin string, addresses string) (*simplejson.Json, *ApiError)
- func (c Client) VerifyValidAddress(coin string, addresses string) (*simplejson.Json, *ApiError)
- func (c Client) Withdraw(coin string, requestId string, address string, amount *big.Int, ...) (*simplejson.Json, *ApiError)
- type Config
- type Env
- type LocalSigner
- type MPCClient
- func (c MPCClient) BabylonBatchBroadcastStakingTransaction(requestIds []string) (*simplejson.Json, *ApiError)
- func (c MPCClient) BabylonBroadcastStakingTransaction(requestId string) (*simplejson.Json, *ApiError)
- func (c MPCClient) BabylonDropStaking(requestId string, relatedRequestId string, feeRate big.Float, ...) (*simplejson.Json, *ApiError)
- func (c MPCClient) BabylonGetStakingInfo(requestId string) (*simplejson.Json, *ApiError)
- func (c MPCClient) BabylonListTransactionsByStatus(status int, address *string, minCoboId *string, limit *int) (*simplejson.Json, *ApiError)
- func (c MPCClient) BabylonListWaitingBroadcastTransactions(coin string, address string) (*simplejson.Json, *ApiError)
- func (c MPCClient) BabylonPrepareStaking(requestId string, stakeInfo string, feeRate big.Float, maxStakingFee *big.Int) (*simplejson.Json, *ApiError)
- func (c MPCClient) BabylonReplaceStakingFee(requestId string, relatedRequestId string, feeRate big.Float, ...) (*simplejson.Json, *ApiError)
- func (c MPCClient) BabylonUnbonding(requestId string, stakingRequestId string) (*simplejson.Json, *ApiError)
- func (c MPCClient) BabylonWithdraw(requestId string, feeRate big.Float, maxFeeAmount *big.Int, ...) (*simplejson.Json, *ApiError)
- func (c MPCClient) CreateTransaction(coin, requestId string, amount *big.Int, ...) (*simplejson.Json, *ApiError)
- func (c MPCClient) DropTransaction(coboId, requestId string, fee *big.Float, gasPrice *big.Int, gasLimit *big.Int, ...) (*simplejson.Json, *ApiError)
- func (c MPCClient) EstimateFee(coin string, amount *big.Int, address string, replace_cobo_id string, ...) (*simplejson.Json, *ApiError)
- func (c MPCClient) GenerateAddressMemo(chainCode string, address string, count int) (*simplejson.Json, *ApiError)
- func (c MPCClient) GenerateAddresses(chainCode string, count int, encoding *int) (*simplejson.Json, *ApiError)
- func (c MPCClient) GetApprovalDetails(requestId string) (*simplejson.Json, *ApiError)
- func (c MPCClient) GetBalance(address, chainCode, coin string) (*simplejson.Json, *ApiError)
- func (c MPCClient) GetCoinInfo(coin string) (*simplejson.Json, *ApiError)
- func (c MPCClient) GetMainAddress(chainCode string) (*simplejson.Json, *ApiError)
- func (c MPCClient) GetMaxSendAmount(coin string, feeRate big.Float, toAddress string, fromAddress string) (*simplejson.Json, *ApiError)
- func (c MPCClient) GetOrdinalsInscription(inscriptionId string) (*simplejson.Json, *ApiError)
- func (c MPCClient) GetRareSatoshis(coin string, txHash string, voutN int) (*simplejson.Json, *ApiError)
- func (c MPCClient) GetSupportedChains() (*simplejson.Json, *ApiError)
- func (c MPCClient) GetSupportedCoins(chainCode string) (*simplejson.Json, *ApiError)
- func (c MPCClient) GetSupportedNftCollections(chainCode string) (*simplejson.Json, *ApiError)
- func (c MPCClient) GetUTXOAssets(coin string, txHash string, voutN int) (*simplejson.Json, *ApiError)
- func (c MPCClient) GetWalletSupportedCoins() (*simplejson.Json, *ApiError)
- func (c MPCClient) IsValidAddress(coin string, address string) (*simplejson.Json, *ApiError)
- func (c MPCClient) ListAddresses(chainCode, startId, endId string, limit, sortFlag int) (*simplejson.Json, *ApiError)
- func (c MPCClient) ListBalances(pageIndex, pageLength int, coin string, chainCode string) (*simplejson.Json, *ApiError)
- func (c MPCClient) ListSpendable(address, coin string) (*simplejson.Json, *ApiError)
- func (c MPCClient) ListTransactions(startTime, endTime, status int, orderBy, order string, transactionType int, ...) (*simplejson.Json, *ApiError)
- func (c MPCClient) ListTssNode() (*simplejson.Json, *ApiError)
- func (c MPCClient) ListTssNodeRequests(requestType, status int) (*simplejson.Json, *ApiError)
- func (c MPCClient) LockSpendable(coin string, txHash string, voutN int) (*simplejson.Json, *ApiError)
- func (c MPCClient) Request(method string, path string, params map[string]string) (*simplejson.Json, *ApiError)
- func (c MPCClient) RetryDoubleCheck(requestId string) (*simplejson.Json, *ApiError)
- func (c MPCClient) SignMessage(chainCode, requestId, fromAddr string, signVersion int, extraParameters string) (*simplejson.Json, *ApiError)
- func (c MPCClient) SignMessagesByCobotIds(CoboIds string) (*simplejson.Json, *ApiError)
- func (c MPCClient) SignMessagesByRequestIds(requestIds string) (*simplejson.Json, *ApiError)
- func (c MPCClient) SpeedupTransaction(coboId, requestId string, fee *big.Float, gasPrice *big.Int, gasLimit *big.Int, ...) (*simplejson.Json, *ApiError)
- func (c MPCClient) TransactionsByCoboIds(coboIds string, status int) (*simplejson.Json, *ApiError)
- func (c MPCClient) TransactionsByRequestIds(requestIds string, status int) (*simplejson.Json, *ApiError)
- func (c MPCClient) TransactionsByTxHash(txHash string, transactionType int) (*simplejson.Json, *ApiError)
- func (c MPCClient) UnlockSpendable(coin string, txHash string, voutN int) (*simplejson.Json, *ApiError)
- func (c MPCClient) UpdateAddressDescription(coin string, address string, description string) (*simplejson.Json, *ApiError)
- func (c MPCClient) VerifyEcc(message string, signature string) bool
- type MPCPrimeBrokerClient
- func (c MPCPrimeBrokerClient) BindAddresses(userId string, addresses string) (*simplejson.Json, *ApiError)
- func (c MPCPrimeBrokerClient) ChangeBinding(userId string) (*simplejson.Json, *ApiError)
- func (c MPCPrimeBrokerClient) CreateBinding(userId string) (*simplejson.Json, *ApiError)
- func (c MPCPrimeBrokerClient) QueryBinding(binderId string) (*simplejson.Json, *ApiError)
- func (c MPCPrimeBrokerClient) QueryStatement(statementId string) (*simplejson.Json, *ApiError)
- func (c MPCPrimeBrokerClient) QueryUserAuth(userId string) (*simplejson.Json, *ApiError)
- func (c MPCPrimeBrokerClient) Request(method string, path string, params map[string]string) (*simplejson.Json, *ApiError)
- func (c MPCPrimeBrokerClient) UnbindBinding(userId string) (*simplejson.Json, *ApiError)
- func (c MPCPrimeBrokerClient) VerifyEcc(message string, signature string) bool
- type Web3Client
- func (c Web3Client) BatchWeb3NewAddress(chainCode string, count int) (*simplejson.Json, *ApiError)
- func (c Web3Client) GetWeb3AddressList(chainCode string, pageIndex int, pageLength int, sortFlag int) (*simplejson.Json, *ApiError)
- func (c Web3Client) GetWeb3ContractTransaction(requestId string) (*simplejson.Json, *ApiError)
- func (c Web3Client) GetWeb3SupportedChains() (*simplejson.Json, *ApiError)
- func (c Web3Client) GetWeb3SupportedCoins(chainCode string) (*simplejson.Json, *ApiError)
- func (c Web3Client) GetWeb3SupportedContractMethods(chainCode string, contractAddress string) (*simplejson.Json, *ApiError)
- func (c Web3Client) GetWeb3SupportedContracts(chainCode string) (*simplejson.Json, *ApiError)
- func (c Web3Client) GetWeb3SupportedNftCollections() (*simplejson.Json, *ApiError)
- func (c Web3Client) GetWeb3WalletAssetList(address string, chainCode string) (*simplejson.Json, *ApiError)
- func (c Web3Client) GetWeb3WalletNftDetail(nftCode string, tokenId string) (*simplejson.Json, *ApiError)
- func (c Web3Client) GetWeb3WalletNftList(nftCode string, address string) (*simplejson.Json, *ApiError)
- func (c Web3Client) GetWeb3WithdrawTransaction(requestId string) (*simplejson.Json, *ApiError)
- func (c Web3Client) ListWeb3WalletTransactions(address string, chainCode string, maxId string, minId string, limit int) (*simplejson.Json, *ApiError)
- func (c Web3Client) Request(method string, path string, params map[string]string) (*simplejson.Json, *ApiError)
- func (c Web3Client) VerifyEcc(message string, signature string) bool
- func (c Web3Client) Web3Contract(chainCode string, requestId string, walletAddr string, contractAddr string, ...) (*simplejson.Json, *ApiError)
- func (c Web3Client) Web3Withdraw(coin string, requestId string, fromAddr string, toAddr string, amount *big.Int) (*simplejson.Json, *ApiError)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateKeyPair ¶
func SortParams ¶
Types ¶
type Client ¶
func (Client) BatchNewDepositAddress ¶
func (Client) BatchVerifyDepositAddress ¶
func (Client) CheckLoopAddressDetails ¶
func (Client) GetAccountInfo ¶
func (Client) GetAddressHistory ¶
func (Client) GetAddressHistoryWithPage ¶
@param coin string "ETH" @param page_index int start with 0 page @param page_length int page size <= 50 @param sort_flag int 0:DESCENDING 1:ASCENDING
func (Client) GetCoinInfo ¶
func (Client) GetGasStationBalance ¶ added in v0.50.0
func (Client) GetPendingTransaction ¶
func (Client) GetPendingTransactions ¶
func (Client) GetStakingHistory ¶
func (Client) GetStakingProductDetails ¶
func (Client) GetStakingProductList ¶
func (Client) GetStakings ¶
func (Client) GetSupportedCoins ¶ added in v0.47.0
func (Client) GetTransactionDetails ¶
func (Client) GetTransactionHistory ¶
func (Client) GetTransactionsById ¶
func (Client) GetTransactionsByRequestIds ¶ added in v0.47.0
func (Client) GetTransactionsByTime ¶
func (Client) GetTransactionsByTimeEx ¶ added in v0.46.0
func (Client) GetTransactionsByTxid ¶
func (Client) GetUnstakings ¶
func (Client) NewDepositAddress ¶
func (Client) QueryWithdrawInfo ¶
func (Client) VerifyDepositAddress ¶
func (Client) VerifyLoopAddressList ¶
func (Client) VerifyValidAddress ¶
type Config ¶
type Config struct { CoboId string TxId string WithdrawId string DeAddress map[string]string DeAddresses map[string]string LpAddress map[string]string LpAddresses map[string]string Withdraw map[string]string }
func ProdConfig ¶
func ProdConfig() Config
type LocalSigner ¶
type LocalSigner struct {
PrivateKey string
}
func (LocalSigner) GetPublicKey ¶
func (signer LocalSigner) GetPublicKey() string
func (LocalSigner) Sign ¶
func (signer LocalSigner) Sign(message string) string
type MPCClient ¶
func (MPCClient) BabylonBatchBroadcastStakingTransaction ¶ added in v0.59.0
func (MPCClient) BabylonBroadcastStakingTransaction ¶ added in v0.57.0
func (MPCClient) BabylonDropStaking ¶ added in v0.62.0
func (MPCClient) BabylonGetStakingInfo ¶ added in v0.57.0
func (MPCClient) BabylonListTransactionsByStatus ¶ added in v0.61.0
func (MPCClient) BabylonListWaitingBroadcastTransactions ¶ added in v0.57.0
func (MPCClient) BabylonPrepareStaking ¶ added in v0.57.0
func (MPCClient) BabylonReplaceStakingFee ¶ added in v0.57.0
func (MPCClient) BabylonUnbonding ¶ added in v0.63.0
func (MPCClient) BabylonWithdraw ¶ added in v0.63.0
func (MPCClient) CreateTransaction ¶
func (c MPCClient) CreateTransaction(coin, requestId string, amount *big.Int, fromAddr, toAddr, toAddressDetails string, fee *big.Float, gasPrice *big.Int, gasLimit *big.Int, operation int, extraParameters string, maxFee *big.Int, maxPriorityFee *big.Int, feeAmount *big.Int, remark string, autoFuel int, memo string) (*simplejson.Json, *ApiError)
func (MPCClient) DropTransaction ¶
func (MPCClient) EstimateFee ¶
func (MPCClient) GenerateAddressMemo ¶ added in v0.51.0
func (MPCClient) GenerateAddresses ¶
func (MPCClient) GetApprovalDetails ¶ added in v0.58.0
func (MPCClient) GetBalance ¶
func (MPCClient) GetCoinInfo ¶ added in v0.52.0
func (MPCClient) GetMainAddress ¶
func (MPCClient) GetMaxSendAmount ¶ added in v0.48.0
func (MPCClient) GetOrdinalsInscription ¶ added in v0.55.0
func (MPCClient) GetRareSatoshis ¶ added in v0.51.0
func (MPCClient) GetSupportedChains ¶
func (MPCClient) GetSupportedCoins ¶
func (MPCClient) GetSupportedNftCollections ¶
func (MPCClient) GetUTXOAssets ¶ added in v0.55.0
func (MPCClient) GetWalletSupportedCoins ¶
func (MPCClient) IsValidAddress ¶
func (MPCClient) ListAddresses ¶
func (MPCClient) ListBalances ¶
func (MPCClient) ListSpendable ¶
func (MPCClient) ListTransactions ¶
func (MPCClient) ListTssNode ¶
func (MPCClient) ListTssNodeRequests ¶
func (MPCClient) LockSpendable ¶ added in v0.51.0
func (MPCClient) RetryDoubleCheck ¶
func (MPCClient) SignMessage ¶
func (MPCClient) SignMessagesByCobotIds ¶ added in v0.44.0
func (MPCClient) SignMessagesByRequestIds ¶ added in v0.44.0
func (MPCClient) SpeedupTransaction ¶
func (MPCClient) TransactionsByCoboIds ¶
func (MPCClient) TransactionsByRequestIds ¶
func (MPCClient) TransactionsByTxHash ¶
func (MPCClient) UnlockSpendable ¶ added in v0.51.0
func (MPCClient) UpdateAddressDescription ¶ added in v0.45.0
type MPCPrimeBrokerClient ¶ added in v0.47.0
func (MPCPrimeBrokerClient) BindAddresses ¶ added in v0.47.0
func (c MPCPrimeBrokerClient) BindAddresses(userId string, addresses string) (*simplejson.Json, *ApiError)
func (MPCPrimeBrokerClient) ChangeBinding ¶ added in v0.47.0
func (c MPCPrimeBrokerClient) ChangeBinding(userId string) (*simplejson.Json, *ApiError)
func (MPCPrimeBrokerClient) CreateBinding ¶ added in v0.47.0
func (c MPCPrimeBrokerClient) CreateBinding(userId string) (*simplejson.Json, *ApiError)
func (MPCPrimeBrokerClient) QueryBinding ¶ added in v0.47.0
func (c MPCPrimeBrokerClient) QueryBinding(binderId string) (*simplejson.Json, *ApiError)
func (MPCPrimeBrokerClient) QueryStatement ¶ added in v0.47.0
func (c MPCPrimeBrokerClient) QueryStatement(statementId string) (*simplejson.Json, *ApiError)
func (MPCPrimeBrokerClient) QueryUserAuth ¶ added in v0.47.0
func (c MPCPrimeBrokerClient) QueryUserAuth(userId string) (*simplejson.Json, *ApiError)
func (MPCPrimeBrokerClient) UnbindBinding ¶ added in v0.47.0
func (c MPCPrimeBrokerClient) UnbindBinding(userId string) (*simplejson.Json, *ApiError)
type Web3Client ¶
func (Web3Client) BatchWeb3NewAddress ¶
func (c Web3Client) BatchWeb3NewAddress(chainCode string, count int) (*simplejson.Json, *ApiError)
func (Web3Client) GetWeb3AddressList ¶
func (Web3Client) GetWeb3ContractTransaction ¶
func (c Web3Client) GetWeb3ContractTransaction(requestId string) (*simplejson.Json, *ApiError)
func (Web3Client) GetWeb3SupportedChains ¶
func (c Web3Client) GetWeb3SupportedChains() (*simplejson.Json, *ApiError)
func (Web3Client) GetWeb3SupportedCoins ¶
func (c Web3Client) GetWeb3SupportedCoins(chainCode string) (*simplejson.Json, *ApiError)
func (Web3Client) GetWeb3SupportedContractMethods ¶
func (c Web3Client) GetWeb3SupportedContractMethods(chainCode string, contractAddress string) (*simplejson.Json, *ApiError)
func (Web3Client) GetWeb3SupportedContracts ¶
func (c Web3Client) GetWeb3SupportedContracts(chainCode string) (*simplejson.Json, *ApiError)
func (Web3Client) GetWeb3SupportedNftCollections ¶
func (c Web3Client) GetWeb3SupportedNftCollections() (*simplejson.Json, *ApiError)
func (Web3Client) GetWeb3WalletAssetList ¶
func (c Web3Client) GetWeb3WalletAssetList(address string, chainCode string) (*simplejson.Json, *ApiError)
func (Web3Client) GetWeb3WalletNftDetail ¶
func (c Web3Client) GetWeb3WalletNftDetail(nftCode string, tokenId string) (*simplejson.Json, *ApiError)
func (Web3Client) GetWeb3WalletNftList ¶
func (c Web3Client) GetWeb3WalletNftList(nftCode string, address string) (*simplejson.Json, *ApiError)
func (Web3Client) GetWeb3WithdrawTransaction ¶
func (c Web3Client) GetWeb3WithdrawTransaction(requestId string) (*simplejson.Json, *ApiError)
func (Web3Client) ListWeb3WalletTransactions ¶
func (Web3Client) Web3Contract ¶
func (Web3Client) Web3Withdraw ¶
Click to show internal directories.
Click to hide internal directories.