@chainstream-io/sdk 2.0.9 → 2.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chainstream-LmorAvq7.d.cts → chainstream-BQsiLm9_.d.cts} +18 -6
- package/dist/{chainstream-LmorAvq7.d.ts → chainstream-BQsiLm9_.d.ts} +18 -6
- package/dist/chainstream.cjs +57 -18
- package/dist/chainstream.cjs.map +1 -1
- package/dist/chainstream.d.cts +1 -1
- package/dist/chainstream.d.ts +1 -1
- package/dist/chainstream.mjs +57 -18
- package/dist/chainstream.mjs.map +1 -1
- package/dist/index.cjs +89 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +29 -1
- package/dist/index.d.ts +29 -1
- package/dist/index.mjs +85 -18
- package/dist/index.mjs.map +1 -1
- package/dist/stream/index.d.cts +1 -1
- package/dist/stream/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,3 +1,31 @@
|
|
|
1
|
-
export { E as ActivityType, F as BalanceChangeType, G as BalanceTokenType, H as BalanceUpdate, I as Blockchain, J as BlockchainLatestBlock, K as BooleanResult, L as CalculatePnlInput, gh as CalculatePnlResult, C as ChainStreamClient, y as ChainStreamClientOptions, z as ChainStreamRequestContext, M as ChainSymbol, N as ClaimRedPacketRequest, O as ClaimRedPacketResponse, eR as ClaimRedpacketResult, gC as CreateEndpointResult, P as CreateRedPacketRequest, Q as CreateRedPacketResponse, eS as CreateRedpacketResult, cz as CreateTokenInput, cx as CreateTokenInputDex, cy as CreateTokenInputExtra, cA as CreateTokenReply, dS as CreateTokenResult, V as CreateWebhookRequest, R as CreateWebhookRequestMetadata, gF as DeleteEndpointResult, X as DevToken, Y as Dex, Z as DexPool, _ as DexPoolDetail, $ as DexPoolLiquidityModel, a0 as DexPoolSnapshot, a1 as DexPoolTokenLiquidity, a2 as DexPoolTokenSnapshot, a3 as DexPoolType, a4 as DexPoolVersion, a5 as DexProtocolFamily, cw as DexQuoteResponse, a6 as EndpointListResponse, a7 as EndpointOperationResponse, a8 as EndpointOrder, a9 as EndpointSecretResponse, aa as ErrorDetail, ab as ErrorField, ac as ErrorResponse, cG as EstimateGasLimitInput, cH as EstimateGasLimitResponse, ad as FilterCondition, cF as GasPriceResponse, dq as GetActivitiesParams, fR as GetActivitiesResult, ej as GetAddressRiskResult, dw as GetBalanceUpdatesParams, gg as GetBalanceUpdatesResult, dc as GetCandlesParams, fv as GetCandlesResult, cY as GetClaimsByAddressParams, eP as GetClaimsByAddressResult, c_ as GetClaimsParams, eV as GetClaimsResult, fw as GetCreationResult, d0 as GetDevTokensParams, fm as GetDevTokensResult, dY as GetDexpoolResult, cR as GetDexpoolSnapshotsParams, dZ as GetDexpoolSnapshotsResult, gE as GetEndpointResult, gG as GetEndpointSecretResult, cS as GetFinalStretchTokensParams, eB as GetFinalStretchTokensResult, fX as GetGasLimitResult, fY as GetGasPriceResult, de as GetHoldersMultiParams, fy as GetHoldersMultiResult, dd as GetHoldersParams, fx as GetHoldersResult, cT as GetHotTokensParams, eC as GetHotTokensResult, dL as GetLatestBlockResult, d3 as GetMarketDataMulti200, d2 as GetMarketDataMultiParams, fo as GetMarketDataMultiResult, fA as GetMarketDataResult, d5 as GetMetadataMulti200, d4 as GetMetadataMultiParams, fp as GetMetadataMultiResult, fB as GetMetadataResult, cU as GetMigratedTokensParams, eD as GetMigratedTokensResult, dg as GetMintAndBurnParams, fC as GetMintAndBurnResult, dA as GetNetWorthByTokensParams, gl as GetNetWorthByTokensResult, dy as GetNetWorthChartParams, gj as GetNetWorthChartResult, dz as GetNetWorthDetailsParams, gk as GetNetWorthDetailsResult, dx as GetNetWorthParams, gi as GetNetWorthResult, du as GetNetWorthSummaryParams, ge as GetNetWorthSummaryResult, cV as GetNewTokensParams, eE as GetNewTokensResult, d7 as GetPairCandlesParams, fr as GetPairCandlesResult, dC as GetPnlByTokenParams, gn as GetPnlByTokenResult, dv as GetPnlByWalletParams, gf as GetPnlByWalletResult, dD as GetPnlDetailsParams, go as GetPnlDetailsResult, dB as GetPnlParams, gm as GetPnlResult, d8 as GetPoolCandlesParams, fs as GetPoolCandlesResult, dh as GetPoolsParams, fD as GetPoolsResult, di as GetPriceByTimeParams, fE as GetPriceByTimeResult, dj as GetPricesParams, fF as GetPricesResult, eU as GetRedpacketResult, cZ as GetRedpacketsByAddressParams, eQ as GetRedpacketsByAddressResult, cX as GetRedpacketsParams, eO as GetRedpacketsResult, e2 as GetResult, fG as GetSecurityResult, db as GetStatsMulti200, da as GetStatsMulti200Periods, d9 as GetStatsMultiParams, ft as GetStatsMultiResult, fH as GetStatsResult, cW as GetStocksTokensParams, eF as GetStocksTokensResult, dK as GetSupportedBlockchainsResult, df as GetTokenLiquiditySnapshotsParams, fz as GetTokenLiquiditySnapshotsResult, fu as GetTokenResult, dl as GetTokenTradersParams, fJ as GetTokenTradersResult, dm as GetTokenTransferTotalParams, fK as GetTokenTransferTotalResult, dn as GetTokenTransfersParams, fL as GetTokenTransfersResult, dE as GetTokensBalanceParams, gp as GetTokensBalanceResult, d6 as GetTokensParams, fq as GetTokensResult, dk as GetTopHoldersParams, fI as GetTopHoldersResult, dr as GetTopTradersParams, fS as GetTopTradersResult, ds as GetTraderGainersLosersParams, fT as GetTraderGainersLosersResult, dp as GetTradesParams, fQ as GetTradesResult, el as GetTransferAlertsResult, em as GetTransferDirectExposureResult, en as GetTransferNetworkIdentificationsResult, eo as GetTransferSummaryResult, dt as GetWalletFirstTxParams, gd as GetWalletFirstTxResult, dF as GetWalletTransferTotalParams, gq as GetWalletTransferTotalResult, dG as GetWalletTransfersParams, gr as GetWalletTransfersResult, eq as GetWithdrawalAddressIdentificationsResult, er as GetWithdrawalAlertsResult, es as GetWithdrawalDirectExposureResult, et as GetWithdrawalFraudAssessmentResult, eu as GetWithdrawalNetworkIdentificationsResult, ev as GetWithdrawalSummaryResult, ae as HotTokenDuration, af as IpfsUploadResponse, cJ as JobDTO, cI as JobDTOResult, cL as JobStreamingDTO, cK as JobStreamingDTOData, ag as KYTRegisterAddressInput, ah as KYTRegisterTransferInput, ai as KYTRegisterWithdrawalInput, aj as KytAddressExposure, ak as KytAddressIdentification, am as KytAddressRiskResponse, al as KytAddressRiskResponseCluster, an as KytAlertDetail, ao as KytAlertsResponse, ap as KytAlteryaIdentification, aq as KytDirectExposureDetail, ar as KytDirectExposureResponse, as as KytFraudAssessmentResponse, at as KytNetwork, au as KytNetworkIdentificationOrg, av as KytNetworkIdentificationsResponse, aw as KytOnChainActivity, ax as KytRegisterAddressResponse, ay as KytTransferBaseResponse, az as KytWithdrawalAddressIdentificationsResponse, aA as KytWithdrawalBaseResponse, aB as LaunchpadTag, cO as ListDexParams, dR as ListDexResult, dH as ListEndpointsParams, gB as ListEndpointsResult, d1 as ListTokenParams, fn as ListTokenResult, aC as MintBurnType, aD as NetWorthByTokensItem, aE as NetWorthByTokensResult, aF as NetWorthHistoryItem, aG as NetWorthSummaryValue, aH as PageDirection, aJ as PageResponseBalanceUpdate, aI as PageResponseBalanceUpdateDataItem, aL as PageResponseDevToken, aK as PageResponseDevTokenDataItem, aN as PageResponseDex, aM as PageResponseDexDataItem, aP as PageResponseDexPool, aO as PageResponseDexPoolDataItem, aR as PageResponseDexPoolSnapshot, aQ as PageResponseDexPoolSnapshotDataItem, aT as PageResponseNetWorthByTokensItem, aS as PageResponseNetWorthByTokensItemDataItem, aV as PageResponseToken, aU as PageResponseTokenDataItem, aX as PageResponseTokenHolder, aW as PageResponseTokenHolderDataItem, aZ as PageResponseTokenLiquiditySnapshot, aY as PageResponseTokenLiquiditySnapshotDataItem, a$ as PageResponseTokenMintBurn, a_ as PageResponseTokenMintBurnDataItem, b1 as PageResponseTokenPrice, b0 as PageResponseTokenPriceDataItem, b3 as PageResponseTokenTrader, b2 as PageResponseTokenTraderDataItem, b5 as PageResponseTokenTransfer, b4 as PageResponseTokenTransferDataItem, b7 as PageResponseTopTrader, b6 as PageResponseTopTraderDataItem, b9 as PageResponseTradeDetail, b8 as PageResponseTradeDetailDataItem, bb as PageResponseTraderGainersLosersItem, ba as PageResponseTraderGainersLosersItemDataItem, bd as PageResponseWalletTransfer, bc as PageResponseWalletTransferDataItem, be as PnlDetailItem, bf as PnlDetailSummary, bg as PnlDetailsResult, bh as PnlResolution, bi as PoolSortField, cM as PresignResponseModel, d$ as PresignResult, bj as PriceType, cQ as QuoteDex, cP as QuoteParams, dT as QuoteResult, bk as RangeFilterCondition, bl as RankingDuration, bm as RankingTag, bn as RedPacket, bo as RedPacketClaim, bp as RedPacketClaimsPage, bq as RedPacketSendTxRequest, br as RedPacketSendTxResponse, bs as RedPacketsPage, eT as RedpacketSendResult, ei as RegisterAddressResult, ek as RegisterTransferResult, ep as RegisterWithdrawalResult, bt as Resolution, gH as RotateEndpointSecretResult, dU as RouteResult, bu as SearchMode, c$ as SearchParams, fl as SearchResult, bv as SearchSortBy, fZ as SendResult, cD as SendTxInput, cC as SendTxInputOptions, cB as SendTxInputSubmitType, cE as SendTxResponse, bw as SortDirection, S as StreamApi, e3 as StreamingResult, bx as SuccessResponse, cp as SwapInput, cn as SwapInputDex, co as SwapInputSwapMode, cq as SwapReply, dV as SwapResult, ct as SwapRouteInput, cr as SwapRouteInputDex, cs as SwapRouteInputSwapMode, cv as SwapRouteResponse, cu as SwapRouteResponseRouteInfo, by as TimeFrame, bz as Token, bA as TokenBalance, bB as TokenCandle, bC as TokenCreation, bD as TokenCreator, bE as TokenExtra, bF as TokenField, bG as TokenFilter, bH as TokenHolder, bI as TokenLiquiditySnapshot, bJ as TokenListSortField, bK as TokenMarketData, bL as TokenMetadata, bM as TokenMintBurn, bN as TokenPage, bO as TokenPrice, T as TokenProvider, bP as TokenSocialMedias, bR as TokenStats, bQ as TokenStatsPeriods, bS as TokenTradeStatPeriod, bT as TokenTrader, bU as TokenTraderTag, bV as TokenTransfer, bW as TokenTransferTotal, bX as TopTrader, bY as TopTraderSortBy, bZ as TradeDetail, b_ as TradeType, b$ as TraderGainersLosersItem, c0 as TraderPnlResolution, c1 as TransactionStatus, c2 as TransferDirection, c3 as TransferTotalResponse, U as Unsubscribable, gD as UpdateEndpointResult, c5 as UpdateWebhookRequest, c4 as UpdateWebhookRequestMetadata, c6 as WalletBalances, c7 as WalletFirstTx, c8 as WalletNetWorth, c9 as WalletNetWorthChartResponse, ca as WalletNetWorthDetailsPage, cb as WalletNetWorthPage, cd as WalletNetWorthSummaryResponse, cc as WalletNetWorthSummaryResponseWallets, ce as WalletPnlSummary, A as WalletSigner, cf as WalletTransfer, ch as WalletsMapResponse, cg as WalletsMapResponseWallets, ci as Watchlist, cN as WatchlistAddResponseModel, gt as WatchlistAddResult, cj as WatchlistItem, ck as WebhookChannel, cm as WebhookEndpoint, cl as WebhookEndpointMetadata, r as WsCandle, a as WsChannelType, w as WsDex, j as WsDexPoolBalance, n as WsDexProtocol, b as WsMetricType, h as WsNewToken, s as WsPriceType, x as WsRankingTokenList, v as WsRankingType, q as WsSocialMedia, c as WsTokenActivity, W as WsTokenActivityType, o as WsTokenBondingCurve, e as WsTokenHolder, k as WsTokenLiquidity, l as WsTokenMaxLiquidity, p as WsTokenMetadata, d as WsTokenStat, i as WsTokenSupply, m as WsTokenTotalLiquidity, t as WsTradeActivity, f as WsWalletBalance, g as WsWalletPnl, u as WsWalletTokenPnl, B as buildSignMessage, g2 as calculatePnl, eJ as claimRedpacket, gv as createEndpoint, eK as createRedpacket, dN as createToken, D as createWalletAuthHeaders, gy as deleteEndpoint, e0 as get, fN as getActivities, e5 as getAddressRisk, g1 as getBalanceUpdates, f4 as getCandles, eN as getClaims, eH as getClaimsByAddress, f5 as getCreation, eX as getDevTokens, dW as getDexpool, dX as getDexpoolSnapshots, gx as getEndpoint, gz as getEndpointSecret, ew as getFinalStretchTokens, fU as getGasLimit, fV as getGasPrice, f6 as getHolders, f7 as getHoldersMulti, ex as getHotTokens, dJ as getLatestBlock, f9 as getMarketData, eZ as getMarketDataMulti, fa as getMetadata, e_ as getMetadataMulti, ey as getMigratedTokens, fb as getMintAndBurn, g3 as getNetWorth, g6 as getNetWorthByTokens, g4 as getNetWorthChart, g5 as getNetWorthDetails, f$ as getNetWorthSummary, ez as getNewTokens, f0 as getPairCandles, g7 as getPnl, g8 as getPnlByToken, g0 as getPnlByWallet, g9 as getPnlDetails, f1 as getPoolCandles, fc as getPools, fd as getPriceByTime, fe as getPrices, eM as getRedpacket, eG as getRedpackets, eI as getRedpacketsByAddress, ff as getSecurity, fg as getStats, f2 as getStatsMulti, eA as getStocksTokens, dI as getSupportedBlockchains, f3 as getToken, f8 as getTokenLiquiditySnapshots, fi as getTokenTraders, fj as getTokenTransferTotal, fk as getTokenTransfers, e$ as getTokens, ga as getTokensBalance, fh as getTopHolders, fO as getTopTraders, fP as getTraderGainersLosers, fM as getTrades, e7 as getTransferAlerts, e8 as getTransferDirectExposure, e9 as getTransferNetworkIdentifications, ea as getTransferSummary, f_ as getWalletFirstTx, gb as getWalletTransferTotal, gc as getWalletTransfers, ec as getWithdrawalAddressIdentifications, ed as getWithdrawalAlerts, ee as getWithdrawalDirectExposure, ef as getWithdrawalFraudAssessment, eg as getWithdrawalNetworkIdentifications, eh as getWithdrawalSummary, dM as listDex, gu as listEndpoints, eY as listToken, d_ as presign, dO as quote, eL as redpacketSend, e4 as registerAddress, e6 as registerTransfer, eb as registerWithdrawal, gA as rotateEndpointSecret, dP as route, eW as search, fW as send, e1 as streaming, dQ as swap, gw as updateEndpoint, gs as watchlistAdd } from './chainstream-LmorAvq7.cjs';
|
|
1
|
+
export { G as ActivityType, H as BalanceChangeType, I as BalanceTokenType, J as BalanceUpdate, K as Blockchain, L as BlockchainLatestBlock, M as BooleanResult, N as CalculatePnlInput, gj as CalculatePnlResult, C as ChainStreamClient, a as ChainStreamClientOptions, b as ChainStreamRequestContext, O as ChainSymbol, P as ClaimRedPacketRequest, Q as ClaimRedPacketResponse, eT as ClaimRedpacketResult, gE as CreateEndpointResult, R as CreateRedPacketRequest, V as CreateRedPacketResponse, eU as CreateRedpacketResult, cB as CreateTokenInput, cz as CreateTokenInputDex, cA as CreateTokenInputExtra, cC as CreateTokenReply, dU as CreateTokenResult, Y as CreateWebhookRequest, X as CreateWebhookRequestMetadata, gH as DeleteEndpointResult, Z as DevToken, _ as Dex, $ as DexPool, a0 as DexPoolDetail, a1 as DexPoolLiquidityModel, a2 as DexPoolSnapshot, a3 as DexPoolTokenLiquidity, a4 as DexPoolTokenSnapshot, a5 as DexPoolType, a6 as DexPoolVersion, a7 as DexProtocolFamily, cy as DexQuoteResponse, a8 as EndpointListResponse, a9 as EndpointOperationResponse, aa as EndpointOrder, ab as EndpointSecretResponse, ac as ErrorDetail, ad as ErrorField, ae as ErrorResponse, cI as EstimateGasLimitInput, cJ as EstimateGasLimitResponse, af as FilterCondition, cH as GasPriceResponse, ds as GetActivitiesParams, fT as GetActivitiesResult, el as GetAddressRiskResult, dy as GetBalanceUpdatesParams, gi as GetBalanceUpdatesResult, de as GetCandlesParams, fx as GetCandlesResult, c_ as GetClaimsByAddressParams, eR as GetClaimsByAddressResult, d0 as GetClaimsParams, eX as GetClaimsResult, fy as GetCreationResult, d2 as GetDevTokensParams, fo as GetDevTokensResult, d_ as GetDexpoolResult, cT as GetDexpoolSnapshotsParams, d$ as GetDexpoolSnapshotsResult, gG as GetEndpointResult, gI as GetEndpointSecretResult, cU as GetFinalStretchTokensParams, eD as GetFinalStretchTokensResult, fZ as GetGasLimitResult, f_ as GetGasPriceResult, dg as GetHoldersMultiParams, fA as GetHoldersMultiResult, df as GetHoldersParams, fz as GetHoldersResult, cV as GetHotTokensParams, eE as GetHotTokensResult, dN as GetLatestBlockResult, d5 as GetMarketDataMulti200, d4 as GetMarketDataMultiParams, fq as GetMarketDataMultiResult, fC as GetMarketDataResult, d7 as GetMetadataMulti200, d6 as GetMetadataMultiParams, fr as GetMetadataMultiResult, fD as GetMetadataResult, cW as GetMigratedTokensParams, eF as GetMigratedTokensResult, di as GetMintAndBurnParams, fE as GetMintAndBurnResult, dC as GetNetWorthByTokensParams, gn as GetNetWorthByTokensResult, dA as GetNetWorthChartParams, gl as GetNetWorthChartResult, dB as GetNetWorthDetailsParams, gm as GetNetWorthDetailsResult, dz as GetNetWorthParams, gk as GetNetWorthResult, dw as GetNetWorthSummaryParams, gg as GetNetWorthSummaryResult, cX as GetNewTokensParams, eG as GetNewTokensResult, d9 as GetPairCandlesParams, ft as GetPairCandlesResult, dE as GetPnlByTokenParams, gp as GetPnlByTokenResult, dx as GetPnlByWalletParams, gh as GetPnlByWalletResult, dF as GetPnlDetailsParams, gq as GetPnlDetailsResult, dD as GetPnlParams, go as GetPnlResult, da as GetPoolCandlesParams, fu as GetPoolCandlesResult, dj as GetPoolsParams, fF as GetPoolsResult, dk as GetPriceByTimeParams, fG as GetPriceByTimeResult, dl as GetPricesParams, fH as GetPricesResult, eW as GetRedpacketResult, c$ as GetRedpacketsByAddressParams, eS as GetRedpacketsByAddressResult, cZ as GetRedpacketsParams, eQ as GetRedpacketsResult, e4 as GetResult, fI as GetSecurityResult, dd as GetStatsMulti200, dc as GetStatsMulti200Periods, db as GetStatsMultiParams, fv as GetStatsMultiResult, fJ as GetStatsResult, cY as GetStocksTokensParams, eH as GetStocksTokensResult, dM as GetSupportedBlockchainsResult, dh as GetTokenLiquiditySnapshotsParams, fB as GetTokenLiquiditySnapshotsResult, fw as GetTokenResult, dn as GetTokenTradersParams, fL as GetTokenTradersResult, dp as GetTokenTransferTotalParams, fM as GetTokenTransferTotalResult, dq as GetTokenTransfersParams, fN as GetTokenTransfersResult, dG as GetTokensBalanceParams, gr as GetTokensBalanceResult, d8 as GetTokensParams, fs as GetTokensResult, dm as GetTopHoldersParams, fK as GetTopHoldersResult, dt as GetTopTradersParams, fU as GetTopTradersResult, du as GetTraderGainersLosersParams, fV as GetTraderGainersLosersResult, dr as GetTradesParams, fS as GetTradesResult, en as GetTransferAlertsResult, eo as GetTransferDirectExposureResult, ep as GetTransferNetworkIdentificationsResult, eq as GetTransferSummaryResult, dv as GetWalletFirstTxParams, gf as GetWalletFirstTxResult, dH as GetWalletTransferTotalParams, gs as GetWalletTransferTotalResult, dI as GetWalletTransfersParams, gt as GetWalletTransfersResult, es as GetWithdrawalAddressIdentificationsResult, et as GetWithdrawalAlertsResult, eu as GetWithdrawalDirectExposureResult, ev as GetWithdrawalFraudAssessmentResult, ew as GetWithdrawalNetworkIdentificationsResult, ex as GetWithdrawalSummaryResult, ag as HotTokenDuration, ah as IpfsUploadResponse, cL as JobDTO, cK as JobDTOResult, cN as JobStreamingDTO, cM as JobStreamingDTOData, ai as KYTRegisterAddressInput, aj as KYTRegisterTransferInput, ak as KYTRegisterWithdrawalInput, al as KytAddressExposure, am as KytAddressIdentification, ao as KytAddressRiskResponse, an as KytAddressRiskResponseCluster, ap as KytAlertDetail, aq as KytAlertsResponse, ar as KytAlteryaIdentification, as as KytDirectExposureDetail, at as KytDirectExposureResponse, au as KytFraudAssessmentResponse, av as KytNetwork, aw as KytNetworkIdentificationOrg, ax as KytNetworkIdentificationsResponse, ay as KytOnChainActivity, az as KytRegisterAddressResponse, aA as KytTransferBaseResponse, aB as KytWithdrawalAddressIdentificationsResponse, aC as KytWithdrawalBaseResponse, aD as LaunchpadTag, cQ as ListDexParams, dT as ListDexResult, dJ as ListEndpointsParams, gD as ListEndpointsResult, d3 as ListTokenParams, fp as ListTokenResult, aE as MintBurnType, aF as NetWorthByTokensItem, aG as NetWorthByTokensResult, aH as NetWorthHistoryItem, aI as NetWorthSummaryValue, aJ as PageDirection, aL as PageResponseBalanceUpdate, aK as PageResponseBalanceUpdateDataItem, aN as PageResponseDevToken, aM as PageResponseDevTokenDataItem, aP as PageResponseDex, aO as PageResponseDexDataItem, aR as PageResponseDexPool, aQ as PageResponseDexPoolDataItem, aT as PageResponseDexPoolSnapshot, aS as PageResponseDexPoolSnapshotDataItem, aV as PageResponseNetWorthByTokensItem, aU as PageResponseNetWorthByTokensItemDataItem, aX as PageResponseToken, aW as PageResponseTokenDataItem, aZ as PageResponseTokenHolder, aY as PageResponseTokenHolderDataItem, a$ as PageResponseTokenLiquiditySnapshot, a_ as PageResponseTokenLiquiditySnapshotDataItem, b1 as PageResponseTokenMintBurn, b0 as PageResponseTokenMintBurnDataItem, b3 as PageResponseTokenPrice, b2 as PageResponseTokenPriceDataItem, b5 as PageResponseTokenTrader, b4 as PageResponseTokenTraderDataItem, b7 as PageResponseTokenTransfer, b6 as PageResponseTokenTransferDataItem, b9 as PageResponseTopTrader, b8 as PageResponseTopTraderDataItem, bb as PageResponseTradeDetail, ba as PageResponseTradeDetailDataItem, bd as PageResponseTraderGainersLosersItem, bc as PageResponseTraderGainersLosersItemDataItem, bf as PageResponseWalletTransfer, be as PageResponseWalletTransferDataItem, bg as PnlDetailItem, bh as PnlDetailSummary, bi as PnlDetailsResult, bj as PnlResolution, bk as PoolSortField, cO as PresignResponseModel, e1 as PresignResult, bl as PriceType, cS as QuoteDex, cR as QuoteParams, dV as QuoteResult, bm as RangeFilterCondition, bn as RankingDuration, bo as RankingTag, bp as RedPacket, bq as RedPacketClaim, br as RedPacketClaimsPage, bs as RedPacketSendTxRequest, bt as RedPacketSendTxResponse, bu as RedPacketsPage, eV as RedpacketSendResult, ek as RegisterAddressResult, em as RegisterTransferResult, er as RegisterWithdrawalResult, bv as Resolution, gJ as RotateEndpointSecretResult, dW as RouteResult, bw as SearchMode, d1 as SearchParams, fn as SearchResult, bx as SearchSortBy, f$ as SendResult, cF as SendTxInput, cE as SendTxInputOptions, cD as SendTxInputSubmitType, cG as SendTxResponse, by as SortDirection, S as StreamApi, e5 as StreamingResult, bz as SuccessResponse, cr as SwapInput, cp as SwapInputDex, cq as SwapInputSwapMode, cs as SwapReply, dX as SwapResult, cv as SwapRouteInput, ct as SwapRouteInputDex, cu as SwapRouteInputSwapMode, cx as SwapRouteResponse, cw as SwapRouteResponseRouteInfo, bA as TimeFrame, bB as Token, bC as TokenBalance, bD as TokenCandle, bE as TokenCreation, bF as TokenCreator, bG as TokenExtra, bH as TokenField, bI as TokenFilter, bJ as TokenHolder, bK as TokenLiquiditySnapshot, bL as TokenListSortField, bM as TokenMarketData, bN as TokenMetadata, bO as TokenMintBurn, bP as TokenPage, bQ as TokenPrice, T as TokenProvider, bR as TokenSocialMedias, bT as TokenStats, bS as TokenStatsPeriods, bU as TokenTradeStatPeriod, bV as TokenTrader, bW as TokenTraderTag, bX as TokenTransfer, bY as TokenTransferTotal, bZ as TopTrader, b_ as TopTraderSortBy, b$ as TradeDetail, c0 as TradeType, c1 as TraderGainersLosersItem, c2 as TraderPnlResolution, c3 as TransactionStatus, c4 as TransferDirection, c5 as TransferTotalResponse, U as Unsubscribable, gF as UpdateEndpointResult, c7 as UpdateWebhookRequest, c6 as UpdateWebhookRequestMetadata, c8 as WalletBalances, c9 as WalletFirstTx, ca as WalletNetWorth, cb as WalletNetWorthChartResponse, cc as WalletNetWorthDetailsPage, cd as WalletNetWorthPage, cf as WalletNetWorthSummaryResponse, ce as WalletNetWorthSummaryResponseWallets, cg as WalletPnlSummary, W as WalletSigner, ch as WalletTransfer, cj as WalletsMapResponse, ci as WalletsMapResponseWallets, ck as Watchlist, cP as WatchlistAddResponseModel, gv as WatchlistAddResult, cl as WatchlistItem, cm as WebhookChannel, co as WebhookEndpoint, cn as WebhookEndpointMetadata, y as WsCandle, h as WsChannelType, E as WsDex, q as WsDexPoolBalance, u as WsDexProtocol, i as WsMetricType, o as WsNewToken, z as WsPriceType, F as WsRankingTokenList, D as WsRankingType, x as WsSocialMedia, j as WsTokenActivity, f as WsTokenActivityType, v as WsTokenBondingCurve, l as WsTokenHolder, r as WsTokenLiquidity, s as WsTokenMaxLiquidity, w as WsTokenMetadata, k as WsTokenStat, p as WsTokenSupply, t as WsTokenTotalLiquidity, A as WsTradeActivity, m as WsWalletBalance, n as WsWalletPnl, B as WsWalletTokenPnl, c as buildSiwxMessage, g4 as calculatePnl, eL as claimRedpacket, e as clearSiwxTokenCache, gx as createEndpoint, eM as createRedpacket, d as createSiwxToken, dP as createToken, gA as deleteEndpoint, e2 as get, fP as getActivities, e7 as getAddressRisk, g3 as getBalanceUpdates, f6 as getCandles, eP as getClaims, eJ as getClaimsByAddress, f7 as getCreation, eZ as getDevTokens, dY as getDexpool, dZ as getDexpoolSnapshots, gz as getEndpoint, gB as getEndpointSecret, ey as getFinalStretchTokens, fW as getGasLimit, fX as getGasPrice, f8 as getHolders, f9 as getHoldersMulti, ez as getHotTokens, dL as getLatestBlock, fb as getMarketData, e$ as getMarketDataMulti, fc as getMetadata, f0 as getMetadataMulti, eA as getMigratedTokens, fd as getMintAndBurn, g5 as getNetWorth, g8 as getNetWorthByTokens, g6 as getNetWorthChart, g7 as getNetWorthDetails, g1 as getNetWorthSummary, eB as getNewTokens, f2 as getPairCandles, g9 as getPnl, ga as getPnlByToken, g2 as getPnlByWallet, gb as getPnlDetails, f3 as getPoolCandles, fe as getPools, ff as getPriceByTime, fg as getPrices, eO as getRedpacket, eI as getRedpackets, eK as getRedpacketsByAddress, fh as getSecurity, g as getSiwxToken, fi as getStats, f4 as getStatsMulti, eC as getStocksTokens, dK as getSupportedBlockchains, f5 as getToken, fa as getTokenLiquiditySnapshots, fk as getTokenTraders, fl as getTokenTransferTotal, fm as getTokenTransfers, f1 as getTokens, gc as getTokensBalance, fj as getTopHolders, fQ as getTopTraders, fR as getTraderGainersLosers, fO as getTrades, e9 as getTransferAlerts, ea as getTransferDirectExposure, eb as getTransferNetworkIdentifications, ec as getTransferSummary, g0 as getWalletFirstTx, gd as getWalletTransferTotal, ge as getWalletTransfers, ee as getWithdrawalAddressIdentifications, ef as getWithdrawalAlerts, eg as getWithdrawalDirectExposure, eh as getWithdrawalFraudAssessment, ei as getWithdrawalNetworkIdentifications, ej as getWithdrawalSummary, dO as listDex, gw as listEndpoints, e_ as listToken, e0 as presign, dQ as quote, eN as redpacketSend, e6 as registerAddress, e8 as registerTransfer, ed as registerWithdrawal, gC as rotateEndpointSecret, dR as route, eY as search, fY as send, e3 as streaming, dS as swap, gy as updateEndpoint, gu as watchlistAdd } from './chainstream-BQsiLm9_.cjs';
|
|
2
2
|
export { CEL_FIELD_MAPPINGS, FieldMapping, MethodFieldMappings, SubscriptionMethod, getAvailableFields, getFieldMappings, replaceFilterFields } from './stream/index.cjs';
|
|
3
3
|
import 'axios';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Wallet signer interface for x402 wallet signature authentication.
|
|
7
|
+
* Implement this for your chain (EVM or Solana).
|
|
8
|
+
*/
|
|
9
|
+
interface WalletSigner {
|
|
10
|
+
/** The blockchain chain type: "evm" or "solana" */
|
|
11
|
+
chain: "evm" | "solana";
|
|
12
|
+
/** The wallet address (EVM hex or Solana Base58) */
|
|
13
|
+
address: string;
|
|
14
|
+
/**
|
|
15
|
+
* Sign a message string.
|
|
16
|
+
* - EVM: personal_sign (EIP-191)
|
|
17
|
+
* - Solana: signMessage (ed25519)
|
|
18
|
+
* @returns hex-encoded signature (0x-prefixed for EVM, hex or base58 for Solana)
|
|
19
|
+
*/
|
|
20
|
+
signMessage(message: string): Promise<string>;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Builds the message that must be signed for wallet authentication.
|
|
24
|
+
*/
|
|
25
|
+
declare function buildSignMessage(chain: string, address: string, timestamp: string, nonce: string): string;
|
|
26
|
+
/**
|
|
27
|
+
* Generates the X-Wallet-* headers for a request using wallet signature auth.
|
|
28
|
+
*/
|
|
29
|
+
declare function createWalletAuthHeaders(signer: WalletSigner): Promise<Record<string, string>>;
|
|
30
|
+
|
|
31
|
+
export { buildSignMessage, createWalletAuthHeaders };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,31 @@
|
|
|
1
|
-
export { E as ActivityType, F as BalanceChangeType, G as BalanceTokenType, H as BalanceUpdate, I as Blockchain, J as BlockchainLatestBlock, K as BooleanResult, L as CalculatePnlInput, gh as CalculatePnlResult, C as ChainStreamClient, y as ChainStreamClientOptions, z as ChainStreamRequestContext, M as ChainSymbol, N as ClaimRedPacketRequest, O as ClaimRedPacketResponse, eR as ClaimRedpacketResult, gC as CreateEndpointResult, P as CreateRedPacketRequest, Q as CreateRedPacketResponse, eS as CreateRedpacketResult, cz as CreateTokenInput, cx as CreateTokenInputDex, cy as CreateTokenInputExtra, cA as CreateTokenReply, dS as CreateTokenResult, V as CreateWebhookRequest, R as CreateWebhookRequestMetadata, gF as DeleteEndpointResult, X as DevToken, Y as Dex, Z as DexPool, _ as DexPoolDetail, $ as DexPoolLiquidityModel, a0 as DexPoolSnapshot, a1 as DexPoolTokenLiquidity, a2 as DexPoolTokenSnapshot, a3 as DexPoolType, a4 as DexPoolVersion, a5 as DexProtocolFamily, cw as DexQuoteResponse, a6 as EndpointListResponse, a7 as EndpointOperationResponse, a8 as EndpointOrder, a9 as EndpointSecretResponse, aa as ErrorDetail, ab as ErrorField, ac as ErrorResponse, cG as EstimateGasLimitInput, cH as EstimateGasLimitResponse, ad as FilterCondition, cF as GasPriceResponse, dq as GetActivitiesParams, fR as GetActivitiesResult, ej as GetAddressRiskResult, dw as GetBalanceUpdatesParams, gg as GetBalanceUpdatesResult, dc as GetCandlesParams, fv as GetCandlesResult, cY as GetClaimsByAddressParams, eP as GetClaimsByAddressResult, c_ as GetClaimsParams, eV as GetClaimsResult, fw as GetCreationResult, d0 as GetDevTokensParams, fm as GetDevTokensResult, dY as GetDexpoolResult, cR as GetDexpoolSnapshotsParams, dZ as GetDexpoolSnapshotsResult, gE as GetEndpointResult, gG as GetEndpointSecretResult, cS as GetFinalStretchTokensParams, eB as GetFinalStretchTokensResult, fX as GetGasLimitResult, fY as GetGasPriceResult, de as GetHoldersMultiParams, fy as GetHoldersMultiResult, dd as GetHoldersParams, fx as GetHoldersResult, cT as GetHotTokensParams, eC as GetHotTokensResult, dL as GetLatestBlockResult, d3 as GetMarketDataMulti200, d2 as GetMarketDataMultiParams, fo as GetMarketDataMultiResult, fA as GetMarketDataResult, d5 as GetMetadataMulti200, d4 as GetMetadataMultiParams, fp as GetMetadataMultiResult, fB as GetMetadataResult, cU as GetMigratedTokensParams, eD as GetMigratedTokensResult, dg as GetMintAndBurnParams, fC as GetMintAndBurnResult, dA as GetNetWorthByTokensParams, gl as GetNetWorthByTokensResult, dy as GetNetWorthChartParams, gj as GetNetWorthChartResult, dz as GetNetWorthDetailsParams, gk as GetNetWorthDetailsResult, dx as GetNetWorthParams, gi as GetNetWorthResult, du as GetNetWorthSummaryParams, ge as GetNetWorthSummaryResult, cV as GetNewTokensParams, eE as GetNewTokensResult, d7 as GetPairCandlesParams, fr as GetPairCandlesResult, dC as GetPnlByTokenParams, gn as GetPnlByTokenResult, dv as GetPnlByWalletParams, gf as GetPnlByWalletResult, dD as GetPnlDetailsParams, go as GetPnlDetailsResult, dB as GetPnlParams, gm as GetPnlResult, d8 as GetPoolCandlesParams, fs as GetPoolCandlesResult, dh as GetPoolsParams, fD as GetPoolsResult, di as GetPriceByTimeParams, fE as GetPriceByTimeResult, dj as GetPricesParams, fF as GetPricesResult, eU as GetRedpacketResult, cZ as GetRedpacketsByAddressParams, eQ as GetRedpacketsByAddressResult, cX as GetRedpacketsParams, eO as GetRedpacketsResult, e2 as GetResult, fG as GetSecurityResult, db as GetStatsMulti200, da as GetStatsMulti200Periods, d9 as GetStatsMultiParams, ft as GetStatsMultiResult, fH as GetStatsResult, cW as GetStocksTokensParams, eF as GetStocksTokensResult, dK as GetSupportedBlockchainsResult, df as GetTokenLiquiditySnapshotsParams, fz as GetTokenLiquiditySnapshotsResult, fu as GetTokenResult, dl as GetTokenTradersParams, fJ as GetTokenTradersResult, dm as GetTokenTransferTotalParams, fK as GetTokenTransferTotalResult, dn as GetTokenTransfersParams, fL as GetTokenTransfersResult, dE as GetTokensBalanceParams, gp as GetTokensBalanceResult, d6 as GetTokensParams, fq as GetTokensResult, dk as GetTopHoldersParams, fI as GetTopHoldersResult, dr as GetTopTradersParams, fS as GetTopTradersResult, ds as GetTraderGainersLosersParams, fT as GetTraderGainersLosersResult, dp as GetTradesParams, fQ as GetTradesResult, el as GetTransferAlertsResult, em as GetTransferDirectExposureResult, en as GetTransferNetworkIdentificationsResult, eo as GetTransferSummaryResult, dt as GetWalletFirstTxParams, gd as GetWalletFirstTxResult, dF as GetWalletTransferTotalParams, gq as GetWalletTransferTotalResult, dG as GetWalletTransfersParams, gr as GetWalletTransfersResult, eq as GetWithdrawalAddressIdentificationsResult, er as GetWithdrawalAlertsResult, es as GetWithdrawalDirectExposureResult, et as GetWithdrawalFraudAssessmentResult, eu as GetWithdrawalNetworkIdentificationsResult, ev as GetWithdrawalSummaryResult, ae as HotTokenDuration, af as IpfsUploadResponse, cJ as JobDTO, cI as JobDTOResult, cL as JobStreamingDTO, cK as JobStreamingDTOData, ag as KYTRegisterAddressInput, ah as KYTRegisterTransferInput, ai as KYTRegisterWithdrawalInput, aj as KytAddressExposure, ak as KytAddressIdentification, am as KytAddressRiskResponse, al as KytAddressRiskResponseCluster, an as KytAlertDetail, ao as KytAlertsResponse, ap as KytAlteryaIdentification, aq as KytDirectExposureDetail, ar as KytDirectExposureResponse, as as KytFraudAssessmentResponse, at as KytNetwork, au as KytNetworkIdentificationOrg, av as KytNetworkIdentificationsResponse, aw as KytOnChainActivity, ax as KytRegisterAddressResponse, ay as KytTransferBaseResponse, az as KytWithdrawalAddressIdentificationsResponse, aA as KytWithdrawalBaseResponse, aB as LaunchpadTag, cO as ListDexParams, dR as ListDexResult, dH as ListEndpointsParams, gB as ListEndpointsResult, d1 as ListTokenParams, fn as ListTokenResult, aC as MintBurnType, aD as NetWorthByTokensItem, aE as NetWorthByTokensResult, aF as NetWorthHistoryItem, aG as NetWorthSummaryValue, aH as PageDirection, aJ as PageResponseBalanceUpdate, aI as PageResponseBalanceUpdateDataItem, aL as PageResponseDevToken, aK as PageResponseDevTokenDataItem, aN as PageResponseDex, aM as PageResponseDexDataItem, aP as PageResponseDexPool, aO as PageResponseDexPoolDataItem, aR as PageResponseDexPoolSnapshot, aQ as PageResponseDexPoolSnapshotDataItem, aT as PageResponseNetWorthByTokensItem, aS as PageResponseNetWorthByTokensItemDataItem, aV as PageResponseToken, aU as PageResponseTokenDataItem, aX as PageResponseTokenHolder, aW as PageResponseTokenHolderDataItem, aZ as PageResponseTokenLiquiditySnapshot, aY as PageResponseTokenLiquiditySnapshotDataItem, a$ as PageResponseTokenMintBurn, a_ as PageResponseTokenMintBurnDataItem, b1 as PageResponseTokenPrice, b0 as PageResponseTokenPriceDataItem, b3 as PageResponseTokenTrader, b2 as PageResponseTokenTraderDataItem, b5 as PageResponseTokenTransfer, b4 as PageResponseTokenTransferDataItem, b7 as PageResponseTopTrader, b6 as PageResponseTopTraderDataItem, b9 as PageResponseTradeDetail, b8 as PageResponseTradeDetailDataItem, bb as PageResponseTraderGainersLosersItem, ba as PageResponseTraderGainersLosersItemDataItem, bd as PageResponseWalletTransfer, bc as PageResponseWalletTransferDataItem, be as PnlDetailItem, bf as PnlDetailSummary, bg as PnlDetailsResult, bh as PnlResolution, bi as PoolSortField, cM as PresignResponseModel, d$ as PresignResult, bj as PriceType, cQ as QuoteDex, cP as QuoteParams, dT as QuoteResult, bk as RangeFilterCondition, bl as RankingDuration, bm as RankingTag, bn as RedPacket, bo as RedPacketClaim, bp as RedPacketClaimsPage, bq as RedPacketSendTxRequest, br as RedPacketSendTxResponse, bs as RedPacketsPage, eT as RedpacketSendResult, ei as RegisterAddressResult, ek as RegisterTransferResult, ep as RegisterWithdrawalResult, bt as Resolution, gH as RotateEndpointSecretResult, dU as RouteResult, bu as SearchMode, c$ as SearchParams, fl as SearchResult, bv as SearchSortBy, fZ as SendResult, cD as SendTxInput, cC as SendTxInputOptions, cB as SendTxInputSubmitType, cE as SendTxResponse, bw as SortDirection, S as StreamApi, e3 as StreamingResult, bx as SuccessResponse, cp as SwapInput, cn as SwapInputDex, co as SwapInputSwapMode, cq as SwapReply, dV as SwapResult, ct as SwapRouteInput, cr as SwapRouteInputDex, cs as SwapRouteInputSwapMode, cv as SwapRouteResponse, cu as SwapRouteResponseRouteInfo, by as TimeFrame, bz as Token, bA as TokenBalance, bB as TokenCandle, bC as TokenCreation, bD as TokenCreator, bE as TokenExtra, bF as TokenField, bG as TokenFilter, bH as TokenHolder, bI as TokenLiquiditySnapshot, bJ as TokenListSortField, bK as TokenMarketData, bL as TokenMetadata, bM as TokenMintBurn, bN as TokenPage, bO as TokenPrice, T as TokenProvider, bP as TokenSocialMedias, bR as TokenStats, bQ as TokenStatsPeriods, bS as TokenTradeStatPeriod, bT as TokenTrader, bU as TokenTraderTag, bV as TokenTransfer, bW as TokenTransferTotal, bX as TopTrader, bY as TopTraderSortBy, bZ as TradeDetail, b_ as TradeType, b$ as TraderGainersLosersItem, c0 as TraderPnlResolution, c1 as TransactionStatus, c2 as TransferDirection, c3 as TransferTotalResponse, U as Unsubscribable, gD as UpdateEndpointResult, c5 as UpdateWebhookRequest, c4 as UpdateWebhookRequestMetadata, c6 as WalletBalances, c7 as WalletFirstTx, c8 as WalletNetWorth, c9 as WalletNetWorthChartResponse, ca as WalletNetWorthDetailsPage, cb as WalletNetWorthPage, cd as WalletNetWorthSummaryResponse, cc as WalletNetWorthSummaryResponseWallets, ce as WalletPnlSummary, A as WalletSigner, cf as WalletTransfer, ch as WalletsMapResponse, cg as WalletsMapResponseWallets, ci as Watchlist, cN as WatchlistAddResponseModel, gt as WatchlistAddResult, cj as WatchlistItem, ck as WebhookChannel, cm as WebhookEndpoint, cl as WebhookEndpointMetadata, r as WsCandle, a as WsChannelType, w as WsDex, j as WsDexPoolBalance, n as WsDexProtocol, b as WsMetricType, h as WsNewToken, s as WsPriceType, x as WsRankingTokenList, v as WsRankingType, q as WsSocialMedia, c as WsTokenActivity, W as WsTokenActivityType, o as WsTokenBondingCurve, e as WsTokenHolder, k as WsTokenLiquidity, l as WsTokenMaxLiquidity, p as WsTokenMetadata, d as WsTokenStat, i as WsTokenSupply, m as WsTokenTotalLiquidity, t as WsTradeActivity, f as WsWalletBalance, g as WsWalletPnl, u as WsWalletTokenPnl, B as buildSignMessage, g2 as calculatePnl, eJ as claimRedpacket, gv as createEndpoint, eK as createRedpacket, dN as createToken, D as createWalletAuthHeaders, gy as deleteEndpoint, e0 as get, fN as getActivities, e5 as getAddressRisk, g1 as getBalanceUpdates, f4 as getCandles, eN as getClaims, eH as getClaimsByAddress, f5 as getCreation, eX as getDevTokens, dW as getDexpool, dX as getDexpoolSnapshots, gx as getEndpoint, gz as getEndpointSecret, ew as getFinalStretchTokens, fU as getGasLimit, fV as getGasPrice, f6 as getHolders, f7 as getHoldersMulti, ex as getHotTokens, dJ as getLatestBlock, f9 as getMarketData, eZ as getMarketDataMulti, fa as getMetadata, e_ as getMetadataMulti, ey as getMigratedTokens, fb as getMintAndBurn, g3 as getNetWorth, g6 as getNetWorthByTokens, g4 as getNetWorthChart, g5 as getNetWorthDetails, f$ as getNetWorthSummary, ez as getNewTokens, f0 as getPairCandles, g7 as getPnl, g8 as getPnlByToken, g0 as getPnlByWallet, g9 as getPnlDetails, f1 as getPoolCandles, fc as getPools, fd as getPriceByTime, fe as getPrices, eM as getRedpacket, eG as getRedpackets, eI as getRedpacketsByAddress, ff as getSecurity, fg as getStats, f2 as getStatsMulti, eA as getStocksTokens, dI as getSupportedBlockchains, f3 as getToken, f8 as getTokenLiquiditySnapshots, fi as getTokenTraders, fj as getTokenTransferTotal, fk as getTokenTransfers, e$ as getTokens, ga as getTokensBalance, fh as getTopHolders, fO as getTopTraders, fP as getTraderGainersLosers, fM as getTrades, e7 as getTransferAlerts, e8 as getTransferDirectExposure, e9 as getTransferNetworkIdentifications, ea as getTransferSummary, f_ as getWalletFirstTx, gb as getWalletTransferTotal, gc as getWalletTransfers, ec as getWithdrawalAddressIdentifications, ed as getWithdrawalAlerts, ee as getWithdrawalDirectExposure, ef as getWithdrawalFraudAssessment, eg as getWithdrawalNetworkIdentifications, eh as getWithdrawalSummary, dM as listDex, gu as listEndpoints, eY as listToken, d_ as presign, dO as quote, eL as redpacketSend, e4 as registerAddress, e6 as registerTransfer, eb as registerWithdrawal, gA as rotateEndpointSecret, dP as route, eW as search, fW as send, e1 as streaming, dQ as swap, gw as updateEndpoint, gs as watchlistAdd } from './chainstream-LmorAvq7.js';
|
|
1
|
+
export { G as ActivityType, H as BalanceChangeType, I as BalanceTokenType, J as BalanceUpdate, K as Blockchain, L as BlockchainLatestBlock, M as BooleanResult, N as CalculatePnlInput, gj as CalculatePnlResult, C as ChainStreamClient, a as ChainStreamClientOptions, b as ChainStreamRequestContext, O as ChainSymbol, P as ClaimRedPacketRequest, Q as ClaimRedPacketResponse, eT as ClaimRedpacketResult, gE as CreateEndpointResult, R as CreateRedPacketRequest, V as CreateRedPacketResponse, eU as CreateRedpacketResult, cB as CreateTokenInput, cz as CreateTokenInputDex, cA as CreateTokenInputExtra, cC as CreateTokenReply, dU as CreateTokenResult, Y as CreateWebhookRequest, X as CreateWebhookRequestMetadata, gH as DeleteEndpointResult, Z as DevToken, _ as Dex, $ as DexPool, a0 as DexPoolDetail, a1 as DexPoolLiquidityModel, a2 as DexPoolSnapshot, a3 as DexPoolTokenLiquidity, a4 as DexPoolTokenSnapshot, a5 as DexPoolType, a6 as DexPoolVersion, a7 as DexProtocolFamily, cy as DexQuoteResponse, a8 as EndpointListResponse, a9 as EndpointOperationResponse, aa as EndpointOrder, ab as EndpointSecretResponse, ac as ErrorDetail, ad as ErrorField, ae as ErrorResponse, cI as EstimateGasLimitInput, cJ as EstimateGasLimitResponse, af as FilterCondition, cH as GasPriceResponse, ds as GetActivitiesParams, fT as GetActivitiesResult, el as GetAddressRiskResult, dy as GetBalanceUpdatesParams, gi as GetBalanceUpdatesResult, de as GetCandlesParams, fx as GetCandlesResult, c_ as GetClaimsByAddressParams, eR as GetClaimsByAddressResult, d0 as GetClaimsParams, eX as GetClaimsResult, fy as GetCreationResult, d2 as GetDevTokensParams, fo as GetDevTokensResult, d_ as GetDexpoolResult, cT as GetDexpoolSnapshotsParams, d$ as GetDexpoolSnapshotsResult, gG as GetEndpointResult, gI as GetEndpointSecretResult, cU as GetFinalStretchTokensParams, eD as GetFinalStretchTokensResult, fZ as GetGasLimitResult, f_ as GetGasPriceResult, dg as GetHoldersMultiParams, fA as GetHoldersMultiResult, df as GetHoldersParams, fz as GetHoldersResult, cV as GetHotTokensParams, eE as GetHotTokensResult, dN as GetLatestBlockResult, d5 as GetMarketDataMulti200, d4 as GetMarketDataMultiParams, fq as GetMarketDataMultiResult, fC as GetMarketDataResult, d7 as GetMetadataMulti200, d6 as GetMetadataMultiParams, fr as GetMetadataMultiResult, fD as GetMetadataResult, cW as GetMigratedTokensParams, eF as GetMigratedTokensResult, di as GetMintAndBurnParams, fE as GetMintAndBurnResult, dC as GetNetWorthByTokensParams, gn as GetNetWorthByTokensResult, dA as GetNetWorthChartParams, gl as GetNetWorthChartResult, dB as GetNetWorthDetailsParams, gm as GetNetWorthDetailsResult, dz as GetNetWorthParams, gk as GetNetWorthResult, dw as GetNetWorthSummaryParams, gg as GetNetWorthSummaryResult, cX as GetNewTokensParams, eG as GetNewTokensResult, d9 as GetPairCandlesParams, ft as GetPairCandlesResult, dE as GetPnlByTokenParams, gp as GetPnlByTokenResult, dx as GetPnlByWalletParams, gh as GetPnlByWalletResult, dF as GetPnlDetailsParams, gq as GetPnlDetailsResult, dD as GetPnlParams, go as GetPnlResult, da as GetPoolCandlesParams, fu as GetPoolCandlesResult, dj as GetPoolsParams, fF as GetPoolsResult, dk as GetPriceByTimeParams, fG as GetPriceByTimeResult, dl as GetPricesParams, fH as GetPricesResult, eW as GetRedpacketResult, c$ as GetRedpacketsByAddressParams, eS as GetRedpacketsByAddressResult, cZ as GetRedpacketsParams, eQ as GetRedpacketsResult, e4 as GetResult, fI as GetSecurityResult, dd as GetStatsMulti200, dc as GetStatsMulti200Periods, db as GetStatsMultiParams, fv as GetStatsMultiResult, fJ as GetStatsResult, cY as GetStocksTokensParams, eH as GetStocksTokensResult, dM as GetSupportedBlockchainsResult, dh as GetTokenLiquiditySnapshotsParams, fB as GetTokenLiquiditySnapshotsResult, fw as GetTokenResult, dn as GetTokenTradersParams, fL as GetTokenTradersResult, dp as GetTokenTransferTotalParams, fM as GetTokenTransferTotalResult, dq as GetTokenTransfersParams, fN as GetTokenTransfersResult, dG as GetTokensBalanceParams, gr as GetTokensBalanceResult, d8 as GetTokensParams, fs as GetTokensResult, dm as GetTopHoldersParams, fK as GetTopHoldersResult, dt as GetTopTradersParams, fU as GetTopTradersResult, du as GetTraderGainersLosersParams, fV as GetTraderGainersLosersResult, dr as GetTradesParams, fS as GetTradesResult, en as GetTransferAlertsResult, eo as GetTransferDirectExposureResult, ep as GetTransferNetworkIdentificationsResult, eq as GetTransferSummaryResult, dv as GetWalletFirstTxParams, gf as GetWalletFirstTxResult, dH as GetWalletTransferTotalParams, gs as GetWalletTransferTotalResult, dI as GetWalletTransfersParams, gt as GetWalletTransfersResult, es as GetWithdrawalAddressIdentificationsResult, et as GetWithdrawalAlertsResult, eu as GetWithdrawalDirectExposureResult, ev as GetWithdrawalFraudAssessmentResult, ew as GetWithdrawalNetworkIdentificationsResult, ex as GetWithdrawalSummaryResult, ag as HotTokenDuration, ah as IpfsUploadResponse, cL as JobDTO, cK as JobDTOResult, cN as JobStreamingDTO, cM as JobStreamingDTOData, ai as KYTRegisterAddressInput, aj as KYTRegisterTransferInput, ak as KYTRegisterWithdrawalInput, al as KytAddressExposure, am as KytAddressIdentification, ao as KytAddressRiskResponse, an as KytAddressRiskResponseCluster, ap as KytAlertDetail, aq as KytAlertsResponse, ar as KytAlteryaIdentification, as as KytDirectExposureDetail, at as KytDirectExposureResponse, au as KytFraudAssessmentResponse, av as KytNetwork, aw as KytNetworkIdentificationOrg, ax as KytNetworkIdentificationsResponse, ay as KytOnChainActivity, az as KytRegisterAddressResponse, aA as KytTransferBaseResponse, aB as KytWithdrawalAddressIdentificationsResponse, aC as KytWithdrawalBaseResponse, aD as LaunchpadTag, cQ as ListDexParams, dT as ListDexResult, dJ as ListEndpointsParams, gD as ListEndpointsResult, d3 as ListTokenParams, fp as ListTokenResult, aE as MintBurnType, aF as NetWorthByTokensItem, aG as NetWorthByTokensResult, aH as NetWorthHistoryItem, aI as NetWorthSummaryValue, aJ as PageDirection, aL as PageResponseBalanceUpdate, aK as PageResponseBalanceUpdateDataItem, aN as PageResponseDevToken, aM as PageResponseDevTokenDataItem, aP as PageResponseDex, aO as PageResponseDexDataItem, aR as PageResponseDexPool, aQ as PageResponseDexPoolDataItem, aT as PageResponseDexPoolSnapshot, aS as PageResponseDexPoolSnapshotDataItem, aV as PageResponseNetWorthByTokensItem, aU as PageResponseNetWorthByTokensItemDataItem, aX as PageResponseToken, aW as PageResponseTokenDataItem, aZ as PageResponseTokenHolder, aY as PageResponseTokenHolderDataItem, a$ as PageResponseTokenLiquiditySnapshot, a_ as PageResponseTokenLiquiditySnapshotDataItem, b1 as PageResponseTokenMintBurn, b0 as PageResponseTokenMintBurnDataItem, b3 as PageResponseTokenPrice, b2 as PageResponseTokenPriceDataItem, b5 as PageResponseTokenTrader, b4 as PageResponseTokenTraderDataItem, b7 as PageResponseTokenTransfer, b6 as PageResponseTokenTransferDataItem, b9 as PageResponseTopTrader, b8 as PageResponseTopTraderDataItem, bb as PageResponseTradeDetail, ba as PageResponseTradeDetailDataItem, bd as PageResponseTraderGainersLosersItem, bc as PageResponseTraderGainersLosersItemDataItem, bf as PageResponseWalletTransfer, be as PageResponseWalletTransferDataItem, bg as PnlDetailItem, bh as PnlDetailSummary, bi as PnlDetailsResult, bj as PnlResolution, bk as PoolSortField, cO as PresignResponseModel, e1 as PresignResult, bl as PriceType, cS as QuoteDex, cR as QuoteParams, dV as QuoteResult, bm as RangeFilterCondition, bn as RankingDuration, bo as RankingTag, bp as RedPacket, bq as RedPacketClaim, br as RedPacketClaimsPage, bs as RedPacketSendTxRequest, bt as RedPacketSendTxResponse, bu as RedPacketsPage, eV as RedpacketSendResult, ek as RegisterAddressResult, em as RegisterTransferResult, er as RegisterWithdrawalResult, bv as Resolution, gJ as RotateEndpointSecretResult, dW as RouteResult, bw as SearchMode, d1 as SearchParams, fn as SearchResult, bx as SearchSortBy, f$ as SendResult, cF as SendTxInput, cE as SendTxInputOptions, cD as SendTxInputSubmitType, cG as SendTxResponse, by as SortDirection, S as StreamApi, e5 as StreamingResult, bz as SuccessResponse, cr as SwapInput, cp as SwapInputDex, cq as SwapInputSwapMode, cs as SwapReply, dX as SwapResult, cv as SwapRouteInput, ct as SwapRouteInputDex, cu as SwapRouteInputSwapMode, cx as SwapRouteResponse, cw as SwapRouteResponseRouteInfo, bA as TimeFrame, bB as Token, bC as TokenBalance, bD as TokenCandle, bE as TokenCreation, bF as TokenCreator, bG as TokenExtra, bH as TokenField, bI as TokenFilter, bJ as TokenHolder, bK as TokenLiquiditySnapshot, bL as TokenListSortField, bM as TokenMarketData, bN as TokenMetadata, bO as TokenMintBurn, bP as TokenPage, bQ as TokenPrice, T as TokenProvider, bR as TokenSocialMedias, bT as TokenStats, bS as TokenStatsPeriods, bU as TokenTradeStatPeriod, bV as TokenTrader, bW as TokenTraderTag, bX as TokenTransfer, bY as TokenTransferTotal, bZ as TopTrader, b_ as TopTraderSortBy, b$ as TradeDetail, c0 as TradeType, c1 as TraderGainersLosersItem, c2 as TraderPnlResolution, c3 as TransactionStatus, c4 as TransferDirection, c5 as TransferTotalResponse, U as Unsubscribable, gF as UpdateEndpointResult, c7 as UpdateWebhookRequest, c6 as UpdateWebhookRequestMetadata, c8 as WalletBalances, c9 as WalletFirstTx, ca as WalletNetWorth, cb as WalletNetWorthChartResponse, cc as WalletNetWorthDetailsPage, cd as WalletNetWorthPage, cf as WalletNetWorthSummaryResponse, ce as WalletNetWorthSummaryResponseWallets, cg as WalletPnlSummary, W as WalletSigner, ch as WalletTransfer, cj as WalletsMapResponse, ci as WalletsMapResponseWallets, ck as Watchlist, cP as WatchlistAddResponseModel, gv as WatchlistAddResult, cl as WatchlistItem, cm as WebhookChannel, co as WebhookEndpoint, cn as WebhookEndpointMetadata, y as WsCandle, h as WsChannelType, E as WsDex, q as WsDexPoolBalance, u as WsDexProtocol, i as WsMetricType, o as WsNewToken, z as WsPriceType, F as WsRankingTokenList, D as WsRankingType, x as WsSocialMedia, j as WsTokenActivity, f as WsTokenActivityType, v as WsTokenBondingCurve, l as WsTokenHolder, r as WsTokenLiquidity, s as WsTokenMaxLiquidity, w as WsTokenMetadata, k as WsTokenStat, p as WsTokenSupply, t as WsTokenTotalLiquidity, A as WsTradeActivity, m as WsWalletBalance, n as WsWalletPnl, B as WsWalletTokenPnl, c as buildSiwxMessage, g4 as calculatePnl, eL as claimRedpacket, e as clearSiwxTokenCache, gx as createEndpoint, eM as createRedpacket, d as createSiwxToken, dP as createToken, gA as deleteEndpoint, e2 as get, fP as getActivities, e7 as getAddressRisk, g3 as getBalanceUpdates, f6 as getCandles, eP as getClaims, eJ as getClaimsByAddress, f7 as getCreation, eZ as getDevTokens, dY as getDexpool, dZ as getDexpoolSnapshots, gz as getEndpoint, gB as getEndpointSecret, ey as getFinalStretchTokens, fW as getGasLimit, fX as getGasPrice, f8 as getHolders, f9 as getHoldersMulti, ez as getHotTokens, dL as getLatestBlock, fb as getMarketData, e$ as getMarketDataMulti, fc as getMetadata, f0 as getMetadataMulti, eA as getMigratedTokens, fd as getMintAndBurn, g5 as getNetWorth, g8 as getNetWorthByTokens, g6 as getNetWorthChart, g7 as getNetWorthDetails, g1 as getNetWorthSummary, eB as getNewTokens, f2 as getPairCandles, g9 as getPnl, ga as getPnlByToken, g2 as getPnlByWallet, gb as getPnlDetails, f3 as getPoolCandles, fe as getPools, ff as getPriceByTime, fg as getPrices, eO as getRedpacket, eI as getRedpackets, eK as getRedpacketsByAddress, fh as getSecurity, g as getSiwxToken, fi as getStats, f4 as getStatsMulti, eC as getStocksTokens, dK as getSupportedBlockchains, f5 as getToken, fa as getTokenLiquiditySnapshots, fk as getTokenTraders, fl as getTokenTransferTotal, fm as getTokenTransfers, f1 as getTokens, gc as getTokensBalance, fj as getTopHolders, fQ as getTopTraders, fR as getTraderGainersLosers, fO as getTrades, e9 as getTransferAlerts, ea as getTransferDirectExposure, eb as getTransferNetworkIdentifications, ec as getTransferSummary, g0 as getWalletFirstTx, gd as getWalletTransferTotal, ge as getWalletTransfers, ee as getWithdrawalAddressIdentifications, ef as getWithdrawalAlerts, eg as getWithdrawalDirectExposure, eh as getWithdrawalFraudAssessment, ei as getWithdrawalNetworkIdentifications, ej as getWithdrawalSummary, dO as listDex, gw as listEndpoints, e_ as listToken, e0 as presign, dQ as quote, eN as redpacketSend, e6 as registerAddress, e8 as registerTransfer, ed as registerWithdrawal, gC as rotateEndpointSecret, dR as route, eY as search, fY as send, e3 as streaming, dS as swap, gy as updateEndpoint, gu as watchlistAdd } from './chainstream-BQsiLm9_.js';
|
|
2
2
|
export { CEL_FIELD_MAPPINGS, FieldMapping, MethodFieldMappings, SubscriptionMethod, getAvailableFields, getFieldMappings, replaceFilterFields } from './stream/index.js';
|
|
3
3
|
import 'axios';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Wallet signer interface for x402 wallet signature authentication.
|
|
7
|
+
* Implement this for your chain (EVM or Solana).
|
|
8
|
+
*/
|
|
9
|
+
interface WalletSigner {
|
|
10
|
+
/** The blockchain chain type: "evm" or "solana" */
|
|
11
|
+
chain: "evm" | "solana";
|
|
12
|
+
/** The wallet address (EVM hex or Solana Base58) */
|
|
13
|
+
address: string;
|
|
14
|
+
/**
|
|
15
|
+
* Sign a message string.
|
|
16
|
+
* - EVM: personal_sign (EIP-191)
|
|
17
|
+
* - Solana: signMessage (ed25519)
|
|
18
|
+
* @returns hex-encoded signature (0x-prefixed for EVM, hex or base58 for Solana)
|
|
19
|
+
*/
|
|
20
|
+
signMessage(message: string): Promise<string>;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Builds the message that must be signed for wallet authentication.
|
|
24
|
+
*/
|
|
25
|
+
declare function buildSignMessage(chain: string, address: string, timestamp: string, nonce: string): string;
|
|
26
|
+
/**
|
|
27
|
+
* Generates the X-Wallet-* headers for a request using wallet signature auth.
|
|
28
|
+
*/
|
|
29
|
+
declare function createWalletAuthHeaders(signer: WalletSigner): Promise<Record<string, string>>;
|
|
30
|
+
|
|
31
|
+
export { buildSignMessage, createWalletAuthHeaders };
|
package/dist/index.mjs
CHANGED
|
@@ -13,24 +13,69 @@ import { EventSourcePolyfill } from "event-source-polyfill";
|
|
|
13
13
|
import Axios from "axios";
|
|
14
14
|
import axiosRetryImport, { exponentialDelay } from "axios-retry";
|
|
15
15
|
|
|
16
|
-
// src/
|
|
16
|
+
// src/siwx-auth.ts
|
|
17
17
|
import { randomBytes } from "crypto";
|
|
18
|
-
var
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
var SIWX_DOMAIN = "api.chainstream.io";
|
|
19
|
+
var SIWX_URI = "https://api.chainstream.io";
|
|
20
|
+
var SIWX_VERSION = "1";
|
|
21
|
+
var DEFAULT_CHAIN_ID = "8453";
|
|
22
|
+
var DEFAULT_EXPIRES_IN_SECONDS = 3600;
|
|
23
|
+
var REFRESH_BEFORE_SECONDS = 60;
|
|
24
|
+
function buildSiwxMessage(address, chain, nonce, issuedAt, expiresAt) {
|
|
25
|
+
const chainLabel = chain === "evm" ? "Ethereum" : "Solana";
|
|
26
|
+
const chainId = chain === "evm" ? DEFAULT_CHAIN_ID : "mainnet";
|
|
27
|
+
return [
|
|
28
|
+
`${SIWX_DOMAIN} wants you to sign in with your ${chainLabel} account:`,
|
|
29
|
+
address,
|
|
30
|
+
"",
|
|
31
|
+
"Sign in to ChainStream API",
|
|
32
|
+
"",
|
|
33
|
+
`URI: ${SIWX_URI}`,
|
|
34
|
+
`Version: ${SIWX_VERSION}`,
|
|
35
|
+
`Chain ID: ${chainId}`,
|
|
36
|
+
`Nonce: ${nonce}`,
|
|
37
|
+
`Issued At: ${issuedAt.toISOString()}`,
|
|
38
|
+
`Expiration Time: ${expiresAt.toISOString()}`
|
|
39
|
+
].join("\n");
|
|
21
40
|
}
|
|
22
|
-
async function
|
|
23
|
-
const timestamp = Math.floor(Date.now() / 1e3).toString();
|
|
41
|
+
async function createSiwxToken(signer, expiresInSeconds = DEFAULT_EXPIRES_IN_SECONDS) {
|
|
24
42
|
const nonce = randomBytes(16).toString("hex");
|
|
25
|
-
const
|
|
43
|
+
const issuedAt = /* @__PURE__ */ new Date();
|
|
44
|
+
const expiresAt = new Date(Date.now() + expiresInSeconds * 1e3);
|
|
45
|
+
const message = buildSiwxMessage(signer.address, signer.chain, nonce, issuedAt, expiresAt);
|
|
26
46
|
const signature = await signer.signMessage(message);
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
47
|
+
const messageB64 = Buffer.from(message).toString("base64");
|
|
48
|
+
const token = `${messageB64}.${signature}`;
|
|
49
|
+
return { token, expiresAt };
|
|
50
|
+
}
|
|
51
|
+
var cachedToken = null;
|
|
52
|
+
var cachedExpiresAt = null;
|
|
53
|
+
var refreshPromise = null;
|
|
54
|
+
async function getSiwxToken(signer) {
|
|
55
|
+
if (cachedToken && cachedExpiresAt) {
|
|
56
|
+
const now = /* @__PURE__ */ new Date();
|
|
57
|
+
const refreshThreshold = new Date(cachedExpiresAt.getTime() - REFRESH_BEFORE_SECONDS * 1e3);
|
|
58
|
+
if (now < refreshThreshold) {
|
|
59
|
+
return cachedToken;
|
|
60
|
+
}
|
|
61
|
+
if (now < cachedExpiresAt && !refreshPromise) {
|
|
62
|
+
refreshPromise = refreshToken(signer).finally(() => {
|
|
63
|
+
refreshPromise = null;
|
|
64
|
+
});
|
|
65
|
+
return cachedToken;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
await refreshToken(signer);
|
|
69
|
+
return cachedToken;
|
|
70
|
+
}
|
|
71
|
+
async function refreshToken(signer) {
|
|
72
|
+
const { token, expiresAt } = await createSiwxToken(signer);
|
|
73
|
+
cachedToken = token;
|
|
74
|
+
cachedExpiresAt = expiresAt;
|
|
75
|
+
}
|
|
76
|
+
function clearSiwxTokenCache() {
|
|
77
|
+
cachedToken = null;
|
|
78
|
+
cachedExpiresAt = null;
|
|
34
79
|
}
|
|
35
80
|
|
|
36
81
|
// src/openapi-client/chainstreamApiClient.ts
|
|
@@ -51,10 +96,8 @@ var configure = (options) => {
|
|
|
51
96
|
});
|
|
52
97
|
axiosInstance.interceptors.request.use(async (config) => {
|
|
53
98
|
if (options.walletSigner) {
|
|
54
|
-
const
|
|
55
|
-
|
|
56
|
-
config.headers[key] = value;
|
|
57
|
-
});
|
|
99
|
+
const token = await getSiwxToken(options.walletSigner);
|
|
100
|
+
config.headers.Authorization = `SIWX ${token}`;
|
|
58
101
|
} else if (options.apiKey) {
|
|
59
102
|
config.headers["X-API-KEY"] = options.apiKey;
|
|
60
103
|
} else if (options.accessToken) {
|
|
@@ -2867,6 +2910,26 @@ var QuoteDex = {
|
|
|
2867
2910
|
raydium: "raydium",
|
|
2868
2911
|
pumpfun: "pumpfun"
|
|
2869
2912
|
};
|
|
2913
|
+
|
|
2914
|
+
// src/wallet-auth.ts
|
|
2915
|
+
import { randomBytes as randomBytes2 } from "crypto";
|
|
2916
|
+
var SIGNATURE_PREFIX = "chainstream";
|
|
2917
|
+
function buildSignMessage(chain, address, timestamp, nonce) {
|
|
2918
|
+
return `${SIGNATURE_PREFIX}:${chain}:${address}:${timestamp}:${nonce}`;
|
|
2919
|
+
}
|
|
2920
|
+
async function createWalletAuthHeaders(signer) {
|
|
2921
|
+
const timestamp = Math.floor(Date.now() / 1e3).toString();
|
|
2922
|
+
const nonce = randomBytes2(16).toString("hex");
|
|
2923
|
+
const message = buildSignMessage(signer.chain, signer.address, timestamp, nonce);
|
|
2924
|
+
const signature = await signer.signMessage(message);
|
|
2925
|
+
return {
|
|
2926
|
+
"X-Wallet-Address": signer.address,
|
|
2927
|
+
"X-Wallet-Chain": signer.chain,
|
|
2928
|
+
"X-Wallet-Signature": signature,
|
|
2929
|
+
"X-Wallet-Timestamp": timestamp,
|
|
2930
|
+
"X-Wallet-Nonce": nonce
|
|
2931
|
+
};
|
|
2932
|
+
}
|
|
2870
2933
|
export {
|
|
2871
2934
|
ActivityType,
|
|
2872
2935
|
BalanceChangeType,
|
|
@@ -2918,10 +2981,13 @@ export {
|
|
|
2918
2981
|
WsRankingType,
|
|
2919
2982
|
WsTokenActivityType,
|
|
2920
2983
|
buildSignMessage,
|
|
2984
|
+
buildSiwxMessage,
|
|
2921
2985
|
calculatePnl,
|
|
2922
2986
|
claimRedpacket,
|
|
2987
|
+
clearSiwxTokenCache,
|
|
2923
2988
|
createEndpoint,
|
|
2924
2989
|
createRedpacket,
|
|
2990
|
+
createSiwxToken,
|
|
2925
2991
|
createToken,
|
|
2926
2992
|
createWalletAuthHeaders,
|
|
2927
2993
|
deleteEndpoint,
|
|
@@ -2972,6 +3038,7 @@ export {
|
|
|
2972
3038
|
getRedpackets,
|
|
2973
3039
|
getRedpacketsByAddress,
|
|
2974
3040
|
getSecurity,
|
|
3041
|
+
getSiwxToken,
|
|
2975
3042
|
getStats,
|
|
2976
3043
|
getStatsMulti,
|
|
2977
3044
|
getStocksTokens,
|