Versions in this module Expand all Collapse all v0 v0.1.2 Oct 31, 2023 v0.1.1 Oct 11, 2023 Changes in this version + const ApplyNewAddressUrl + const CancelOrderUrl + const CreateContractOrderUrl + const CreateSignOrderUrl + const CreateWalletUrl + const CreateWithdrawalOrderUrl + const EditAddressDescriptionUrl + const EditTransactionRemarkUrl + const EstimateWithdrawalFeeUrl + const GetAddressListUrl + const GetChainInfoUrl + const GetCoinInfoUrl + const GetCurrentAssetNotionalValueUrl + const GetDefiTransactionDetailsUrl + const GetDefiTransactionHistoryUrl + const GetFilteredOrderUrl + const GetOrderDetailsUrl + const GetSingleAddressUrl + const GetSingleWalletInfoUri + const GetTotalAssetNotionalValueUrl + const GetTransactionDetailsUrl + const GetWalletListUrl + const GetWalletTransactionSummaryUrl + const GetWithdrawalFeeRangeUrl + const GetWithdrawalRateUrl + const ReplaceByFeeUrl + const VerifyAddressFormat + type ApplyNewAddressResp struct + Code int + Data []string + Message string + Successful bool + type Cactus struct + ApiKeyID string + BaseUri string + HttpClient *http.Client + LogLevel int + PrivateKey *ecdsa.PrivateKey + XApiKey string + func NewCactus(baseUri string, xApiKey string, apiKeyId string, privateKey *ecdsa.PrivateKey, ...) *Cactus + func (c *Cactus) ApplyNewAddress(bId string, walletCode string, coinName constants.CactusToken, addressNum int, ...) (*ApplyNewAddressResp, error) + func (c *Cactus) CancelOrder(bId string, orderNo string, level constants.ReplaceByFeeLevel, ...) (*CancelOrderResp, error) + func (c *Cactus) CreateContractOrder(bId string, req CreateContractOrderReq) (*CreateContractOrderResp, error) + func (c *Cactus) CreateSignOrder(bId string, walletCode string, req CreateSignOrderReq) (*CreateSignOrderResp, error) + func (c *Cactus) CreateWallet(bId string, walletType string, number int) (*CreateWalletResp, error) + func (c *Cactus) CreateWithdrawOrder(bId string, req WithdrawalArgsFeeReq) (*CreateWithdrawalOrderResp, error) + func (c *Cactus) EditAddressDescription(bId string, walletCode string, address string, description string) (*EditAccountDescriptionResp, error) + func (c *Cactus) EditTransactionRemark(bId string, walletCode string, id string, remark string) (*EditTransactionRemarkResp, error) + func (c *Cactus) EstimateWithdrawalFee(bId string, req WithdrawalArgsFeeReq) (*EstimateWithdrawalFeeResp, error) + func (c *Cactus) GetAddressList(bId string, walletCode string, coinName constants.CactusToken, ...) (*GetAddressListResp, error) + func (c *Cactus) GetChainInfo(chain string, fullName string) (*GetChainInfoResp, error) + func (c *Cactus) GetCoinInfo(cactusToken string, token string) (*GetCoinInfoResp, error) + func (c *Cactus) GetCurrentAssetNotionalValue(bId string) (*GetCurrentAssetNotionalValueResp, error) + func (c *Cactus) GetDefiTransactionDetails(bId string, walletCode string, orderNo string) (*GetDefiTransactionDetailsResp, error) + func (c *Cactus) GetFilteredOrder(bId string, applicant []string, coinName []constants.CactusToken, ...) (*GetFilteredOrderResp, error) + func (c *Cactus) GetOrderDetails(bId string, orderNo string) (*GetOrderDetailsResp, error) + func (c *Cactus) GetSingleAddress(bId string, walletCode string, coinName constants.CactusToken, address string) (*GetSingleAddressResp, error) + func (c *Cactus) GetSingleWalletInfo(bId string, walletCode string, coinName constants.CactusToken) (*GetSingleWalletInfoResp, error) + func (c *Cactus) GetTotalAssetNotionalValue(bId string) (*GetTotalAssetNotionalValueResp, error) + func (c *Cactus) GetTransactionDetails(bId string, walletCode string, coinName constants.CactusToken, ...) (*GetTransactionDetailsResp, error) + func (c *Cactus) GetTransactionHistory(bId string, walletCode string, keyword string, sortByTime string, ...) (*GetTransactionHistoryResp, error) + func (c *Cactus) GetWalletList(bId string, walletFilterType constants.WalletFilterType, hideNoCoinWallet bool, ...) (*GetWalletListResp, error) + func (c *Cactus) GetWalletTransactionHistory(bId string, walletCode string, coinName constants.CactusToken, ...) (*GetWalletTransactionSummaryResp, error) + func (c *Cactus) GetWithdrawalFeeRange(coinName constants.CactusToken) (*GetWithdrawalFeeRangeResp, error) + func (c *Cactus) GetWithdrawalRate(coinName constants.CactusToken) (*GetWithdrawalRateResp, error) + func (c *Cactus) Log(level int, message string) + func (c *Cactus) ReplaceByFee(bId string, orderNo string, level constants.ReplaceByFeeLevel, ...) (*ReplaceByFeeResp, error) + func (c *Cactus) VerifyAddress(coinName constants.CactusToken, addresses []string) (*VerifyAddressResp, error) + type CancelOrderResp struct + Code int + Data int64 + Message string + Successful bool + type CreateContractOrderReq struct + Amount string + Chain constants.ChainName + ContractData string + Description string + FromAddress string + FromWalletCode string + GasLimit int + GasPrice int64 + GasPriceLevel string + MaxFeePerGas int64 + MaxPriorityFeePerGas int64 + OrderNo string + ToAddress string + type CreateContractOrderResp struct + Code int + Data struct{ ... } + Message string + Successful bool + type CreateSignOrderReq struct + Address string + Chain constants.ChainName + Description string + OrderNo string + Payload interface{} + SignatureVersion constants.SignatureVersion + type CreateSignOrderResp struct + Code int + Data struct{ ... } + Message string + Successful bool + type CreateWalletResp struct + Code int + Data []string + Message string + Successful bool + type CreateWithdrawalOrderResp struct + Code int + Data struct{ ... } + Message string + Successful bool + type DestAddressItem struct + Amount int + DestAddress string + IsAllWithdrawal bool + Memo constants.MemoType + MemoType string + Remark string + type EditAccountDescriptionResp struct + Code int + Message string + Successful bool + type EditTransactionRemarkResp struct + Code int + Message string + Successful bool + type EstimateWithdrawalFeeResp struct + Code int + Data int + Message string + Successful bool + type GetAddressListResp struct + Code int + Data struct{ ... } + Message string + Successful bool + type GetChainInfoResp struct + Code int + Data []struct{ ... } + Message string + Successful bool + type GetCoinInfoResp struct + Code int + Data []struct{ ... } + Message string + Successful bool + type GetCurrentAssetNotionalValueResp struct + Code int + Data struct{ ... } + Message string + Successful interface{} + type GetDefiTransactionDetailsResp struct + Code int + Data struct{ ... } + Message string + Successful bool + type GetFilteredOrderResp struct + Code int + Data struct{ ... } + Message string + Successful bool + type GetOrderDetailsResp struct + Code int + Data struct{ ... } + Message string + Successful bool + type GetSingleAddressResp struct + Code int + Data struct{ ... } + Message string + Successful bool + type GetSingleWalletInfoResp struct + Code int + Data struct{ ... } + Message string + Successful bool + type GetTotalAssetNotionalValueResp struct + Code int + Data struct{ ... } + Message string + Successful interface{} + type GetTransactionDetailsResp struct + Code int + Data struct{ ... } + Message string + Successful bool + type GetTransactionHistoryResp struct + Code int + Data struct{ ... } + Message string + Successful bool + type GetWalletListResp struct + Code int + Data struct{ ... } + Message string + Successful bool + type GetWalletTransactionSummaryResp struct + Code int + Data struct{ ... } + Message string + Successful interface{} + type GetWithdrawalFeeRangeResp struct + Code int + Data struct{ ... } + Message string + Successful bool + type GetWithdrawalRateResp struct + Code int + Data []int64 + Message string + Successful bool + type ReplaceByFeeResp struct + Code int + Data int64 + Message string + Successful bool + type VerifyAddressResp struct + Code int + Data []string + Message string + Successful bool + type WithdrawalArgsFeeReq struct + CoinName constants.CactusToken + Description string + DestAddressItemList DestAddressItem + FeeRate float64 + FeeRateLevel constants.FeeLevelType + FromAddress string + FromWalletCode string + OrderNo string v0.1.0 Oct 11, 2023