diff --git a/api-references/analytics/endpoints/analytics-api.json b/api-references/analytics/endpoints/analytics-api.json index 654d5c32..528418ee 100644 --- a/api-references/analytics/endpoints/analytics-api.json +++ b/api-references/analytics/endpoints/analytics-api.json @@ -14,12 +14,7 @@ "schemas": { "ErrorWebrpcEndpoint": { "type": "object", - "required": [ - "error", - "code", - "msg", - "status" - ], + "required": ["error", "code", "msg", "status"], "properties": { "error": { "type": "string", @@ -44,12 +39,7 @@ }, "ErrorWebrpcRequestFailed": { "type": "object", - "required": [ - "error", - "code", - "msg", - "status" - ], + "required": ["error", "code", "msg", "status"], "properties": { "error": { "type": "string", @@ -74,12 +64,7 @@ }, "ErrorWebrpcBadRoute": { "type": "object", - "required": [ - "error", - "code", - "msg", - "status" - ], + "required": ["error", "code", "msg", "status"], "properties": { "error": { "type": "string", @@ -104,12 +89,7 @@ }, "ErrorWebrpcBadMethod": { "type": "object", - "required": [ - "error", - "code", - "msg", - "status" - ], + "required": ["error", "code", "msg", "status"], "properties": { "error": { "type": "string", @@ -134,12 +114,7 @@ }, "ErrorWebrpcBadRequest": { "type": "object", - "required": [ - "error", - "code", - "msg", - "status" - ], + "required": ["error", "code", "msg", "status"], "properties": { "error": { "type": "string", @@ -164,12 +139,7 @@ }, "ErrorWebrpcBadResponse": { "type": "object", - "required": [ - "error", - "code", - "msg", - "status" - ], + "required": ["error", "code", "msg", "status"], "properties": { "error": { "type": "string", @@ -194,12 +164,7 @@ }, "ErrorWebrpcServerPanic": { "type": "object", - "required": [ - "error", - "code", - "msg", - "status" - ], + "required": ["error", "code", "msg", "status"], "properties": { "error": { "type": "string", @@ -224,12 +189,7 @@ }, "ErrorWebrpcInternalError": { "type": "object", - "required": [ - "error", - "code", - "msg", - "status" - ], + "required": ["error", "code", "msg", "status"], "properties": { "error": { "type": "string", @@ -254,12 +214,7 @@ }, "ErrorWebrpcClientDisconnected": { "type": "object", - "required": [ - "error", - "code", - "msg", - "status" - ], + "required": ["error", "code", "msg", "status"], "properties": { "error": { "type": "string", @@ -284,12 +239,7 @@ }, "ErrorWebrpcStreamLost": { "type": "object", - "required": [ - "error", - "code", - "msg", - "status" - ], + "required": ["error", "code", "msg", "status"], "properties": { "error": { "type": "string", @@ -314,12 +264,7 @@ }, "ErrorWebrpcStreamFinished": { "type": "object", - "required": [ - "error", - "code", - "msg", - "status" - ], + "required": ["error", "code", "msg", "status"], "properties": { "error": { "type": "string", @@ -344,12 +289,7 @@ }, "ErrorUnauthorized": { "type": "object", - "required": [ - "error", - "code", - "msg", - "status" - ], + "required": ["error", "code", "msg", "status"], "properties": { "error": { "type": "string", @@ -374,12 +314,7 @@ }, "ErrorPermissionDenied": { "type": "object", - "required": [ - "error", - "code", - "msg", - "status" - ], + "required": ["error", "code", "msg", "status"], "properties": { "error": { "type": "string", @@ -404,12 +339,7 @@ }, "ErrorSessionExpired": { "type": "object", - "required": [ - "error", - "code", - "msg", - "status" - ], + "required": ["error", "code", "msg", "status"], "properties": { "error": { "type": "string", @@ -434,12 +364,7 @@ }, "ErrorMethodNotFound": { "type": "object", - "required": [ - "error", - "code", - "msg", - "status" - ], + "required": ["error", "code", "msg", "status"], "properties": { "error": { "type": "string", @@ -464,12 +389,7 @@ }, "ErrorRequestConflict": { "type": "object", - "required": [ - "error", - "code", - "msg", - "status" - ], + "required": ["error", "code", "msg", "status"], "properties": { "error": { "type": "string", @@ -494,12 +414,7 @@ }, "ErrorServiceDisabled": { "type": "object", - "required": [ - "error", - "code", - "msg", - "status" - ], + "required": ["error", "code", "msg", "status"], "properties": { "error": { "type": "string", @@ -524,12 +439,7 @@ }, "ErrorTimeout": { "type": "object", - "required": [ - "error", - "code", - "msg", - "status" - ], + "required": ["error", "code", "msg", "status"], "properties": { "error": { "type": "string", @@ -554,12 +464,7 @@ }, "ErrorInvalidArgument": { "type": "object", - "required": [ - "error", - "code", - "msg", - "status" - ], + "required": ["error", "code", "msg", "status"], "properties": { "error": { "type": "string", @@ -584,12 +489,7 @@ }, "ErrorNotFound": { "type": "object", - "required": [ - "error", - "code", - "msg", - "status" - ], + "required": ["error", "code", "msg", "status"], "properties": { "error": { "type": "string", @@ -614,12 +514,7 @@ }, "ErrorUserNotFound": { "type": "object", - "required": [ - "error", - "code", - "msg", - "status" - ], + "required": ["error", "code", "msg", "status"], "properties": { "error": { "type": "string", @@ -644,12 +539,7 @@ }, "ErrorProjectNotFound": { "type": "object", - "required": [ - "error", - "code", - "msg", - "status" - ], + "required": ["error", "code", "msg", "status"], "properties": { "error": { "type": "string", @@ -674,12 +564,7 @@ }, "ErrorInvalidTier": { "type": "object", - "required": [ - "error", - "code", - "msg", - "status" - ], + "required": ["error", "code", "msg", "status"], "properties": { "error": { "type": "string", @@ -704,12 +589,7 @@ }, "ErrorEmailTemplateExists": { "type": "object", - "required": [ - "error", - "code", - "msg", - "status" - ], + "required": ["error", "code", "msg", "status"], "properties": { "error": { "type": "string", @@ -734,12 +614,7 @@ }, "ErrorSubscriptionLimit": { "type": "object", - "required": [ - "error", - "code", - "msg", - "status" - ], + "required": ["error", "code", "msg", "status"], "properties": { "error": { "type": "string", @@ -764,12 +639,7 @@ }, "ErrorFeatureNotIncluded": { "type": "object", - "required": [ - "error", - "code", - "msg", - "status" - ], + "required": ["error", "code", "msg", "status"], "properties": { "error": { "type": "string", @@ -794,12 +664,7 @@ }, "ErrorInvalidNetwork": { "type": "object", - "required": [ - "error", - "code", - "msg", - "status" - ], + "required": ["error", "code", "msg", "status"], "properties": { "error": { "type": "string", @@ -824,12 +689,7 @@ }, "ErrorInvitationExpired": { "type": "object", - "required": [ - "error", - "code", - "msg", - "status" - ], + "required": ["error", "code", "msg", "status"], "properties": { "error": { "type": "string", @@ -854,12 +714,7 @@ }, "ErrorAlreadyCollaborator": { "type": "object", - "required": [ - "error", - "code", - "msg", - "status" - ], + "required": ["error", "code", "msg", "status"], "properties": { "error": { "type": "string", @@ -885,24 +740,12 @@ "AuthSessionType": { "type": "string", "description": "Represented as uint16 on the server side", - "enum": [ - "PUBLIC", - "WALLET", - "USER", - "ADMIN", - "SERVICE" - ] + "enum": ["PUBLIC", "WALLET", "USER", "ADMIN", "SERVICE"] }, "SubscriptionTier": { "type": "string", "description": "Represented as uint8 on the server side", - "enum": [ - "COMMUNITY", - "DEVELOPER", - "GROWTH", - "PRO", - "ENTERPRISE" - ] + "enum": ["COMMUNITY", "DEVELOPER", "GROWTH", "PRO", "ENTERPRISE"] }, "ProjectType": { "type": "string", @@ -923,141 +766,77 @@ "ResourceType": { "type": "string", "description": "Represented as int8 on the server side", - "enum": [ - "CONTRACTS" - ] + "enum": ["CONTRACTS"] }, "SubscriptionProvider": { "type": "string", "description": "Represented as string on the server side", - "enum": [ - "ADMIN", - "STRIPE", - "GOOGLE" - ] + "enum": ["ADMIN", "STRIPE", "GOOGLE"] }, "CollaboratorAccess": { "type": "string", "description": "Represented as uint32 on the server side", - "enum": [ - "NONE", - "READ", - "WRITE", - "ADMIN" - ] + "enum": ["NONE", "READ", "WRITE", "ADMIN"] }, "CollaboratorType": { "type": "string", "description": "Represented as uint8 on the server side", - "enum": [ - "USER", - "SERVICE_ACCOUNT" - ] + "enum": ["USER", "SERVICE_ACCOUNT"] }, "ContractSourceType": { "type": "string", "description": "Represented as uint8 on the server side", - "enum": [ - "LINKED", - "DEPLOYED", - "SALE" - ] + "enum": ["LINKED", "DEPLOYED", "SALE"] }, "SortOrder": { "type": "string", "description": "Represented as uint32 on the server side", - "enum": [ - "DESC", - "ASC" - ] + "enum": ["DESC", "ASC"] }, "PaymentProvider": { "type": "string", "description": "Represented as uint16 on the server side", - "enum": [ - "UNKNOWN", - "STRIPE", - "MANUAL" - ] + "enum": ["UNKNOWN", "STRIPE", "MANUAL"] }, "PaymentStatus": { "type": "string", "description": "Represented as uint16 on the server side", - "enum": [ - "INITIATED", - "PENDING", - "SUCCEEDED", - "FAILED", - "PROCESSED" - ] + "enum": ["INITIATED", "PENDING", "SUCCEEDED", "FAILED", "PROCESSED"] }, "MarketplaceWallet": { "type": "string", "description": "Represented as uint8 on the server side", - "enum": [ - "UNIVERSAL", - "EMBEDDED" - ] + "enum": ["UNIVERSAL", "EMBEDDED"] }, "MarketplaceType": { "type": "string", "description": "Represented as uint8 on the server side", - "enum": [ - "AMM", - "P2P", - "SEQUENCE", - "ORDERBOOK" - ] + "enum": ["AMM", "P2P", "SEQUENCE", "ORDERBOOK"] }, "TokenType": { "type": "string", "description": "Represented as uint8 on the server side", - "enum": [ - "ERC20", - "ERC721", - "ERC1155" - ] + "enum": ["ERC20", "ERC721", "ERC1155"] }, "FileScope": { "type": "string", "description": "Represented as uint8 on the server side", - "enum": [ - "LOGO", - "MARKETPLACE", - "AVATAR", - "EMAIL", - "WALLET", - "TOKEN_DIRECTORY" - ] + "enum": ["LOGO", "MARKETPLACE", "AVATAR", "EMAIL", "WALLET", "TOKEN_DIRECTORY"] }, "EmailTemplateType": { "type": "string", "description": "Represented as uint8 on the server side", - "enum": [ - "UNKNOWN", - "LOGIN", - "GUARD" - ] + "enum": ["UNKNOWN", "LOGIN", "GUARD"] }, "TaskStatus": { "type": "string", "description": "Represented as uint8 on the server side", - "enum": [ - "PENDING", - "PAUSED", - "FAILED", - "COMPLETED", - "DISABLED" - ] + "enum": ["PENDING", "PAUSED", "FAILED", "COMPLETED", "DISABLED"] }, "DateInterval": { "type": "string", "description": "Represented as uint16 on the server side", - "enum": [ - "DAY", - "WEEK", - "MONTH" - ] + "enum": ["DAY", "WEEK", "MONTH"] }, "OnboardingStep": { "type": "string", @@ -1086,39 +865,21 @@ "WaasTenantState": { "type": "string", "description": "Represented as uint8 on the server side", - "enum": [ - "PENDING", - "DEPLOYING", - "READY", - "FAILED" - ] + "enum": ["PENDING", "DEPLOYING", "READY", "FAILED"] }, "TrialType": { "type": "string", "description": "Represented as string on the server side", - "enum": [ - "ANALYTICS" - ] + "enum": ["ANALYTICS"] }, "CustomerTier": { "type": "string", "description": "Represented as uint8 on the server side", - "enum": [ - "TIER_1", - "TIER_2", - "TIER_3", - "TIER_4", - "TIER_5" - ] + "enum": ["TIER_1", "TIER_2", "TIER_3", "TIER_4", "TIER_5"] }, "Version": { "type": "object", - "required": [ - "webrpcVersion", - "schemaVersion", - "schemaHash", - "appVersion" - ], + "required": ["webrpcVersion", "schemaVersion", "schemaHash", "appVersion"], "properties": { "webrpcVersion": { "type": "string" @@ -1183,12 +944,7 @@ }, "RuntimeChecks": { "type": "object", - "required": [ - "quotaControl", - "joqueue", - "stripe", - "cloudCommerce" - ], + "required": ["quotaControl", "joqueue", "stripe", "cloudCommerce"], "properties": { "quotaControl": { "type": "boolean" @@ -1206,12 +962,7 @@ }, "Configuration": { "type": "object", - "required": [ - "name", - "title", - "chainIds", - "domains" - ], + "required": ["name", "title", "chainIds", "domains"], "properties": { "name": { "type": "string" @@ -1267,12 +1018,7 @@ }, "AuthState": { "type": "object", - "required": [ - "jwtToken", - "expiresAt", - "address", - "sessionType" - ], + "required": ["jwtToken", "expiresAt", "address", "sessionType"], "properties": { "jwtToken": { "type": "string" @@ -1327,11 +1073,7 @@ }, "UserSettings": { "type": "object", - "required": [ - "freeProjectsLeft", - "totalFreeProjectLimit", - "totalPaidProjects" - ], + "required": ["freeProjectsLeft", "totalFreeProjectLimit", "totalPaidProjects"], "properties": { "freeProjectsLeft": { "type": "number" @@ -1346,13 +1088,7 @@ }, "UserOverride": { "type": "object", - "required": [ - "id", - "address", - "extraProjects", - "createdAt", - "updatedAt" - ], + "required": ["id", "address", "extraProjects", "createdAt", "updatedAt"], "properties": { "id": { "type": "number" @@ -1465,11 +1201,7 @@ }, "Resource": { "type": "object", - "required": [ - "type", - "total", - "detail" - ], + "required": ["type", "total", "detail"], "properties": { "type": { "$ref": "#/components/schemas/ResourceType" @@ -1488,10 +1220,7 @@ }, "ResourceDetail": { "type": "object", - "required": [ - "key", - "count" - ], + "required": ["key", "count"], "properties": { "key": { "type": "object" @@ -1663,10 +1392,7 @@ }, "ContractLink": { "type": "object", - "required": [ - "project", - "collaborator" - ], + "required": ["project", "collaborator"], "properties": { "contract": { "$ref": "#/components/schemas/Contract" @@ -1708,13 +1434,7 @@ }, "RelayerGasTank": { "type": "object", - "required": [ - "id", - "projectId", - "relayerIdMap", - "totalPayments", - "totalUsage" - ], + "required": ["id", "projectId", "relayerIdMap", "totalPayments", "totalUsage"], "properties": { "id": { "type": "number" @@ -2086,14 +1806,7 @@ }, "ContractFactory": { "type": "object", - "required": [ - "id", - "chainId", - "contractAddress", - "uid", - "createdAt", - "updatedAt" - ], + "required": ["id", "chainId", "contractAddress", "uid", "createdAt", "updatedAt"], "properties": { "id": { "type": "number" @@ -2126,13 +1839,7 @@ }, "NewContractSource": { "type": "object", - "required": [ - "uid", - "name", - "contractType", - "bytecode", - "abi" - ], + "required": ["uid", "name", "contractType", "bytecode", "abi"], "properties": { "uid": { "type": "string" @@ -2201,9 +1908,7 @@ }, "SortBy": { "type": "object", - "required": [ - "column" - ], + "required": ["column"], "properties": { "column": { "type": "string" @@ -2274,11 +1979,7 @@ }, "BillingProviderSettings": { "type": "object", - "required": [ - "priceSubscriptionTier", - "priceCreditOverage", - "disabled" - ], + "required": ["priceSubscriptionTier", "priceCreditOverage", "disabled"], "properties": { "priceSubscriptionTier": { "type": "string" @@ -2383,10 +2084,7 @@ }, "PaymentHistory": { "type": "object", - "required": [ - "totalPayments", - "payments" - ], + "required": ["totalPayments", "payments"], "properties": { "totalPayments": { "type": "number" @@ -2402,9 +2100,7 @@ }, "Redirect": { "type": "object", - "required": [ - "url" - ], + "required": ["url"], "properties": { "url": { "type": "string" @@ -2413,9 +2109,7 @@ }, "StripeEventData": { "type": "object", - "required": [ - "object" - ], + "required": ["object"], "properties": { "object": { "$ref": "#/components/schemas/StripeEventDataObject" @@ -2424,10 +2118,7 @@ }, "StripeEventDataObject": { "type": "object", - "required": [ - "id", - "object" - ], + "required": ["id", "object"], "properties": { "id": { "type": "string" @@ -2439,13 +2130,7 @@ }, "Payment": { "type": "object", - "required": [ - "id", - "projectId", - "provider", - "externalTxnID", - "createdAt" - ], + "required": ["id", "projectId", "provider", "externalTxnID", "createdAt"], "properties": { "id": { "type": "number" @@ -2472,12 +2157,7 @@ }, "PaymentLog": { "type": "object", - "required": [ - "id", - "paymentID", - "data", - "createdAt" - ], + "required": ["id", "paymentID", "data", "createdAt"], "properties": { "id": { "type": "number" @@ -2495,10 +2175,7 @@ }, "PaymentLogData": { "type": "object", - "required": [ - "type", - "data" - ], + "required": ["type", "data"], "properties": { "type": { "type": "string" @@ -2510,10 +2187,7 @@ }, "InvoicesReturn": { "type": "object", - "required": [ - "hasMore", - "invoices" - ], + "required": ["hasMore", "invoices"], "properties": { "hasMore": { "type": "boolean" @@ -2529,13 +2203,7 @@ }, "Invoice": { "type": "object", - "required": [ - "id", - "date", - "amount", - "paid", - "url" - ], + "required": ["id", "date", "amount", "paid", "url"], "properties": { "id": { "type": "string" @@ -2556,9 +2224,7 @@ }, "SubscriptionPlans": { "type": "object", - "required": [ - "configs" - ], + "required": ["configs"], "properties": { "configs": { "type": "object", @@ -2571,11 +2237,7 @@ }, "SubscriptionPlan": { "type": "object", - "required": [ - "tier", - "settings", - "features" - ], + "required": ["tier", "settings", "features"], "properties": { "tier": { "$ref": "#/components/schemas/SubscriptionTier" @@ -2728,11 +2390,7 @@ }, "MarketplaceConfigSchema": { "type": "object", - "required": [ - "version", - "config", - "style" - ], + "required": ["version", "config", "style"], "properties": { "version": { "type": "number" @@ -2755,14 +2413,7 @@ }, "MarketplaceConfig": { "type": "object", - "required": [ - "id", - "projectId", - "version", - "config", - "settings", - "style" - ], + "required": ["id", "projectId", "version", "config", "settings", "style"], "properties": { "id": { "type": "number" @@ -2800,12 +2451,7 @@ }, "MarketplaceWalletOptions": { "type": "object", - "required": [ - "walletType", - "oidcIssuers", - "connectors", - "includeEIP6963Wallets" - ], + "required": ["walletType", "oidcIssuers", "connectors", "includeEIP6963Wallets"], "properties": { "walletType": { "$ref": "#/components/schemas/MarketplaceWallet" @@ -3060,10 +2706,7 @@ }, "WalletConfigSchema": { "type": "object", - "required": [ - "version", - "config" - ], + "required": ["version", "config"], "properties": { "version": { "type": "number" @@ -3079,12 +2722,7 @@ }, "WalletConfig": { "type": "object", - "required": [ - "version", - "projectId", - "platform", - "config" - ], + "required": ["version", "projectId", "platform", "config"], "properties": { "id": { "type": "number" @@ -3218,11 +2856,7 @@ }, "TaskRunner": { "type": "object", - "required": [ - "id", - "workGroup", - "runAt" - ], + "required": ["id", "workGroup", "runAt"], "properties": { "id": { "type": "number" @@ -3237,14 +2871,7 @@ }, "Task": { "type": "object", - "required": [ - "id", - "queue", - "status", - "try", - "payload", - "hash" - ], + "required": ["id", "queue", "status", "try", "payload", "hash"], "properties": { "id": { "type": "number" @@ -3281,9 +2908,7 @@ }, "QueryFilter": { "type": "object", - "required": [ - "projectId" - ], + "required": ["projectId"], "properties": { "projectId": { "type": "number" @@ -3311,10 +2936,7 @@ }, "Chart": { "type": "object", - "required": [ - "value", - "label" - ], + "required": ["value", "label"], "properties": { "value": { "type": "number" @@ -3326,10 +2948,7 @@ }, "MultiValueChart": { "type": "object", - "required": [ - "value", - "label" - ], + "required": ["value", "label"], "properties": { "value": { "type": "object", @@ -3345,13 +2964,7 @@ }, "QueryResult": { "type": "object", - "required": [ - "collection", - "source", - "volumeUSD", - "numTokens", - "numTxns" - ], + "required": ["collection", "source", "volumeUSD", "numTokens", "numTxns"], "properties": { "collection": { "type": "string" @@ -3375,14 +2988,7 @@ }, "CreditBonus": { "type": "object", - "required": [ - "id", - "projectId", - "amount", - "balance", - "createdAt", - "updatedAt" - ], + "required": ["id", "projectId", "amount", "balance", "createdAt", "updatedAt"], "properties": { "id": { "type": "number" @@ -3406,10 +3012,7 @@ }, "OpenIdProvider": { "type": "object", - "required": [ - "iss", - "aud" - ], + "required": ["iss", "aud"], "properties": { "iss": { "type": "string" @@ -3472,9 +3075,7 @@ }, "WaasAuthEmailConfig": { "type": "object", - "required": [ - "enabled" - ], + "required": ["enabled"], "properties": { "enabled": { "type": "boolean" @@ -3483,9 +3084,7 @@ }, "WaasAuthGuestConfig": { "type": "object", - "required": [ - "enabled" - ], + "required": ["enabled"], "properties": { "enabled": { "type": "boolean" @@ -3494,9 +3093,7 @@ }, "WaasAuthPlayfabConfig": { "type": "object", - "required": [ - "enabled" - ], + "required": ["enabled"], "properties": { "enabled": { "type": "boolean" @@ -3508,9 +3105,7 @@ }, "WaasAuthStytchConfig": { "type": "object", - "required": [ - "enabled" - ], + "required": ["enabled"], "properties": { "enabled": { "type": "boolean" @@ -3539,11 +3134,7 @@ }, "WaasWalletStatus": { "type": "object", - "required": [ - "chainId", - "address", - "deployed" - ], + "required": ["chainId", "address", "deployed"], "properties": { "chainId": { "type": "number" @@ -3558,9 +3149,7 @@ }, "RawData": { "type": "object", - "required": [ - "data" - ], + "required": ["data"], "properties": { "data": { "type": "object", @@ -3573,14 +3162,7 @@ }, "Audience": { "type": "object", - "required": [ - "id", - "projectId", - "name", - "contactCount", - "createdAt", - "updatedAt" - ], + "required": ["id", "projectId", "name", "contactCount", "createdAt", "updatedAt"], "properties": { "id": { "type": "number" @@ -3607,13 +3189,7 @@ }, "AudienceContact": { "type": "object", - "required": [ - "id", - "audienceId", - "address", - "createdAt", - "updatedAt" - ], + "required": ["id", "audienceId", "address", "createdAt", "updatedAt"], "properties": { "id": { "type": "number" @@ -3640,13 +3216,7 @@ }, "Trial": { "type": "object", - "required": [ - "id", - "projectId", - "type", - "startAt", - "endAt" - ], + "required": ["id", "projectId", "type", "startAt", "endAt"], "properties": { "id": { "type": "number" @@ -3698,14 +3268,7 @@ }, "Customer": { "type": "object", - "required": [ - "id", - "name", - "tier", - "metadata", - "createdAt", - "updatedAt" - ], + "required": ["id", "name", "tier", "metadata", "createdAt", "updatedAt"], "properties": { "id": { "type": "number" @@ -4634,7 +4197,7 @@ } }, "paths": { - "/rpc/Builder/TotalCompute": { + "/rpc/Analytics/TotalCompute": { "post": { "summary": "TotalCompute", "description": "Get total compute statistics", @@ -4793,9 +4356,7 @@ } } }, - "tags": [ - "secret" - ], + "tags": ["secret"], "security": [ { "BearerAuth": [ @@ -4805,7 +4366,7 @@ ] } }, - "/rpc/Builder/ComputeByService": { + "/rpc/Analytics/ComputeByService": { "post": { "summary": "ComputeByService", "requestBody": { @@ -4963,9 +4524,7 @@ } }, "description": "Get compute statistics by service", - "tags": [ - "secret" - ], + "tags": ["secret"], "security": [ { "BearerAuth": [ @@ -4975,7 +4534,7 @@ ] } }, - "/rpc/Builder/DailyComputeByType": { + "/rpc/Analytics/DailyComputeByType": { "post": { "summary": "DailyComputeByType", "requestBody": { @@ -5133,9 +4692,7 @@ } }, "description": "Get daily compute statistics by type", - "tags": [ - "secret" - ], + "tags": ["secret"], "security": [ { "BearerAuth": [ @@ -5145,7 +4702,7 @@ ] } }, - "/rpc/Builder/DailyComputeByService": { + "/rpc/Analytics/DailyComputeByService": { "post": { "summary": "DailyComputeByService", "requestBody": { @@ -5277,14 +4834,12 @@ }, "security": [ { - "ApiKeyAuth": [ - "AQAAAAAAAEGvyZiWA9FMslYeG_yayXaHnSI" - ] + "ApiKeyAuth": ["AQAAAAAAAEGvyZiWA9FMslYeG_yayXaHnSI"] } ] } }, - "/rpc/Builder/GetOrderbookCollections": { + "/rpc/Analytics/GetOrderbookCollections": { "post": { "summary": "GetOrderbookCollections", "requestBody": { @@ -5416,14 +4971,12 @@ }, "security": [ { - "ApiKeyAuth": [ - "AQAAAAAAAEGvyZiWA9FMslYeG_yayXaHnSI" - ] + "ApiKeyAuth": ["AQAAAAAAAEGvyZiWA9FMslYeG_yayXaHnSI"] } ] } }, - "/rpc/Builder/WalletsTotal": { + "/rpc/Analytics/WalletsTotal": { "post": { "summary": "WalletsTotal", "requestBody": { @@ -5581,9 +5134,7 @@ } }, "description": "Get total wallets", - "tags": [ - "secret" - ], + "tags": ["secret"], "security": [ { "BearerAuth": [ @@ -5593,7 +5144,7 @@ ] } }, - "/rpc/Builder/WalletsDaily": { + "/rpc/Analytics/WalletsDaily": { "post": { "summary": "WalletsDaily", "requestBody": { @@ -5752,9 +5303,7 @@ } }, "description": "Get daily wallet statistics", - "tags": [ - "secret" - ], + "tags": ["secret"], "security": [ { "BearerAuth": [ @@ -5764,7 +5313,7 @@ ] } }, - "/rpc/Builder/WalletsMonthly": { + "/rpc/Analytics/WalletsMonthly": { "post": { "summary": "WalletsMonthly", "requestBody": { @@ -5923,9 +5472,7 @@ } }, "description": "Get monthly wallet statistics", - "tags": [ - "secret" - ], + "tags": ["secret"], "security": [ { "BearerAuth": [ @@ -5935,7 +5482,7 @@ ] } }, - "/rpc/Builder/WalletsByCountry": { + "/rpc/Analytics/WalletsByCountry": { "post": { "summary": "WalletsByCountry", "requestBody": { @@ -6093,9 +5640,7 @@ } }, "description": "Get wallet statistics by country", - "tags": [ - "secret" - ], + "tags": ["secret"], "security": [ { "BearerAuth": [ @@ -6105,7 +5650,7 @@ ] } }, - "/rpc/Builder/WalletsByDevice": { + "/rpc/Analytics/WalletsByDevice": { "post": { "summary": "WalletsByDevice", "requestBody": { @@ -6263,9 +5808,7 @@ } }, "description": "Get wallet statistics by device", - "tags": [ - "secret" - ], + "tags": ["secret"], "security": [ { "BearerAuth": [ @@ -6275,7 +5818,7 @@ ] } }, - "/rpc/Builder/WalletsByBrowser": { + "/rpc/Analytics/WalletsByBrowser": { "post": { "summary": "WalletsByBrowser", "requestBody": { @@ -6433,9 +5976,7 @@ } }, "description": "Get wallet statistics by browser", - "tags": [ - "secret" - ], + "tags": ["secret"], "security": [ { "BearerAuth": [ @@ -6445,7 +5986,7 @@ ] } }, - "/rpc/Builder/WalletsByOS": { + "/rpc/Analytics/WalletsByOS": { "post": { "summary": "WalletsByOS", "requestBody": { @@ -6603,9 +6144,7 @@ } }, "description": "Get wallet statistics by operating system", - "tags": [ - "secret" - ], + "tags": ["secret"], "security": [ { "BearerAuth": [ @@ -6615,7 +6154,7 @@ ] } }, - "/rpc/Builder/WalletsTxnSentTotal": { + "/rpc/Analytics/WalletsTxnSentTotal": { "post": { "summary": "WalletsTxnSentTotal", "requestBody": { @@ -6769,9 +6308,7 @@ } }, "description": "Get total transaction statistics", - "tags": [ - "secret" - ], + "tags": ["secret"], "security": [ { "BearerAuth": [ @@ -6781,7 +6318,7 @@ ] } }, - "/rpc/Builder/WalletsTxnSentDaily": { + "/rpc/Analytics/WalletsTxnSentDaily": { "post": { "summary": "WalletsTxnSentDaily", "requestBody": { @@ -6939,9 +6476,7 @@ } }, "description": "Get daily transaction statistics", - "tags": [ - "secret" - ], + "tags": ["secret"], "security": [ { "BearerAuth": [ @@ -6951,7 +6486,7 @@ ] } }, - "/rpc/Builder/WalletsTxnSentMonthly": { + "/rpc/Analytics/WalletsTxnSentMonthly": { "post": { "summary": "WalletsTxnSentMonthly", "requestBody": { @@ -7109,9 +6644,7 @@ } }, "description": "Get monthly transaction statistics", - "tags": [ - "secret" - ], + "tags": ["secret"], "security": [ { "BearerAuth": [ @@ -7121,7 +6654,7 @@ ] } }, - "/rpc/Builder/MarketTxnEventTotal": { + "/rpc/Analytics/MarketTxnEventTotal": { "post": { "summary": "MarketTxnEventTotal", "requestBody": { @@ -7275,9 +6808,7 @@ } }, "description": "Get total market transaction events", - "tags": [ - "secret" - ], + "tags": ["secret"], "security": [ { "BearerAuth": [ @@ -7287,7 +6818,7 @@ ] } }, - "/rpc/Builder/MarketTxnEventDaily": { + "/rpc/Analytics/MarketTxnEventDaily": { "post": { "summary": "MarketTxnEventDaily", "requestBody": { @@ -7444,9 +6975,7 @@ } }, "description": "Get daily market transaction events", - "tags": [ - "secret" - ], + "tags": ["secret"], "security": [ { "BearerAuth": [ @@ -7456,7 +6985,7 @@ ] } }, - "/rpc/Builder/MarketTxnEventMonthly": { + "/rpc/Analytics/MarketTxnEventMonthly": { "post": { "summary": "MarketTxnEventMonthly", "requestBody": { @@ -7614,9 +7143,7 @@ } }, "description": "Get monthly market transaction statistics", - "tags": [ - "secret" - ], + "tags": ["secret"], "security": [ { "BearerAuth": [ @@ -7626,7 +7153,7 @@ ] } }, - "/rpc/Builder/MarketWalletsTotal": { + "/rpc/Analytics/MarketWalletsTotal": { "post": { "summary": "MarketWalletsTotal", "requestBody": { @@ -7780,9 +7307,7 @@ } }, "description": "Get total market wallets", - "tags": [ - "secret" - ], + "tags": ["secret"], "security": [ { "BearerAuth": [ @@ -7792,7 +7317,7 @@ ] } }, - "/rpc/Builder/MarketWalletsDaily": { + "/rpc/Analytics/MarketWalletsDaily": { "post": { "summary": "MarketWalletsDaily", "requestBody": { @@ -7950,9 +7475,7 @@ } }, "description": "Get daily market wallets", - "tags": [ - "secret" - ], + "tags": ["secret"], "security": [ { "BearerAuth": [ @@ -7962,7 +7485,7 @@ ] } }, - "/rpc/Builder/MarketWalletsMonthly": { + "/rpc/Analytics/MarketWalletsMonthly": { "post": { "summary": "MarketWalletsMonthly", "requestBody": { @@ -8120,9 +7643,7 @@ } }, "description": "Get monthly market wallets", - "tags": [ - "secret" - ], + "tags": ["secret"], "security": [ { "BearerAuth": [ @@ -8132,7 +7653,7 @@ ] } }, - "/rpc/Builder/TotalWalletTxnConversionRate": { + "/rpc/Analytics/TotalWalletTxnConversionRate": { "post": { "summary": "TotalWalletTxnConversionRate", "requestBody": { @@ -8286,9 +7807,7 @@ } }, "description": "Get total wallet transaction conversion rate", - "tags": [ - "secret" - ], + "tags": ["secret"], "security": [ { "BearerAuth": [ @@ -8298,7 +7817,7 @@ ] } }, - "/rpc/Builder/DailyWalletTxnConversionRate": { + "/rpc/Analytics/DailyWalletTxnConversionRate": { "post": { "summary": "DailyWalletTxnConversionRate", "requestBody": { @@ -8456,9 +7975,7 @@ } }, "description": "Get daily wallet transaction conversion rate", - "tags": [ - "secret" - ], + "tags": ["secret"], "security": [ { "BearerAuth": [ @@ -8468,7 +7985,7 @@ ] } }, - "/rpc/Builder/MonthlyWalletTxnConversionRate": { + "/rpc/Analytics/MonthlyWalletTxnConversionRate": { "post": { "summary": "MonthlyWalletTxnConversionRate", "requestBody": { @@ -8626,9 +8143,7 @@ } }, "description": "Get monthly market conversions on your marketplace", - "tags": [ - "secret" - ], + "tags": ["secret"], "security": [ { "BearerAuth": [ @@ -8638,7 +8153,7 @@ ] } }, - "/rpc/Builder/DailyNewWallets": { + "/rpc/Analytics/DailyNewWallets": { "post": { "summary": "DailyNewWallets", "requestBody": { @@ -8796,9 +8311,7 @@ } }, "description": "Get daily new wallets", - "tags": [ - "secret" - ], + "tags": ["secret"], "security": [ { "BearerAuth": [ @@ -8808,7 +8321,7 @@ ] } }, - "/rpc/Builder/MonthlyNewWallets": { + "/rpc/Analytics/MonthlyNewWallets": { "post": { "summary": "MonthlyNewWallets", "requestBody": { @@ -8966,9 +8479,7 @@ } }, "description": "Get monthly new wallets", - "tags": [ - "secret" - ], + "tags": ["secret"], "security": [ { "BearerAuth": [ @@ -8978,7 +8489,7 @@ ] } }, - "/rpc/Builder/TotalNewWallets": { + "/rpc/Analytics/TotalNewWallets": { "post": { "summary": "TotalNewWallets", "requestBody": { @@ -9136,9 +8647,7 @@ } }, "description": "Get Total Wallets over a time interval", - "tags": [ - "secret" - ], + "tags": ["secret"], "security": [ { "BearerAuth": [ @@ -9148,7 +8657,7 @@ ] } }, - "/rpc/Builder/AverageDAU": { + "/rpc/Analytics/AverageDAU": { "post": { "summary": "AverageDAU", "requestBody": { @@ -9306,9 +8815,7 @@ } }, "description": "Get average daily active users", - "tags": [ - "secret" - ], + "tags": ["secret"], "security": [ { "BearerAuth": [ @@ -9318,7 +8825,7 @@ ] } }, - "/rpc/Builder/RollingStickiness": { + "/rpc/Analytics/RollingStickiness": { "post": { "summary": "RollingStickiness", "requestBody": { @@ -9476,9 +8983,7 @@ } }, "description": "Get rolling stickiness metrics", - "tags": [ - "secret" - ], + "tags": ["secret"], "security": [ { "BearerAuth": [ @@ -9488,7 +8993,7 @@ ] } }, - "/rpc/Builder/AverageStickiness": { + "/rpc/Analytics/AverageStickiness": { "post": { "summary": "AverageStickiness", "requestBody": { @@ -9646,9 +9151,7 @@ } }, "description": "Get average stickiness metrics", - "tags": [ - "secret" - ], + "tags": ["secret"], "security": [ { "BearerAuth": [ @@ -9658,7 +9161,7 @@ ] } }, - "/rpc/Builder/D1RetentionByCohort": { + "/rpc/Analytics/D1RetentionByCohort": { "post": { "summary": "D1RetentionByCohort", "requestBody": { @@ -9816,9 +9319,7 @@ } }, "description": "Get D1 retention by cohort", - "tags": [ - "secret" - ], + "tags": ["secret"], "security": [ { "BearerAuth": [ @@ -9828,7 +9329,7 @@ ] } }, - "/rpc/Builder/D3RetentionByCohort": { + "/rpc/Analytics/D3RetentionByCohort": { "post": { "summary": "D3RetentionByCohort", "requestBody": { @@ -9986,9 +9487,7 @@ } }, "description": "Get D3 retention by cohort", - "tags": [ - "secret" - ], + "tags": ["secret"], "security": [ { "BearerAuth": [ @@ -9998,7 +9497,7 @@ ] } }, - "/rpc/Builder/D7RetentionByCohort": { + "/rpc/Analytics/D7RetentionByCohort": { "post": { "summary": "D7RetentionByCohort", "requestBody": { @@ -10156,9 +9655,7 @@ } }, "description": "Get D7 retention by cohort", - "tags": [ - "secret" - ], + "tags": ["secret"], "security": [ { "BearerAuth": [ @@ -10168,7 +9665,7 @@ ] } }, - "/rpc/Builder/D14RetentionByCohort": { + "/rpc/Analytics/D14RetentionByCohort": { "post": { "summary": "D14RetentionByCohort", "requestBody": { @@ -10326,9 +9823,7 @@ } }, "description": "Get D14 retention by cohort", - "tags": [ - "secret" - ], + "tags": ["secret"], "security": [ { "BearerAuth": [ @@ -10338,7 +9833,7 @@ ] } }, - "/rpc/Builder/D28RetentionByCohort": { + "/rpc/Analytics/D28RetentionByCohort": { "post": { "summary": "D28RetentionByCohort", "requestBody": { @@ -10496,9 +9991,7 @@ } }, "description": "Get D28 retention by cohort", - "tags": [ - "secret" - ], + "tags": ["secret"], "security": [ { "BearerAuth": [ @@ -10508,7 +10001,7 @@ ] } }, - "/rpc/Builder/AverageD1Retention": { + "/rpc/Analytics/AverageD1Retention": { "post": { "summary": "AverageD1Retention", "requestBody": { @@ -10666,9 +10159,7 @@ } }, "description": "Get average D1 retention metrics", - "tags": [ - "secret" - ], + "tags": ["secret"], "security": [ { "BearerAuth": [ @@ -10678,7 +10169,7 @@ ] } }, - "/rpc/Builder/AverageD3Retention": { + "/rpc/Analytics/AverageD3Retention": { "post": { "summary": "AverageD3Retention", "requestBody": { @@ -10836,9 +10327,7 @@ } }, "description": "Get average D3 retention metrics", - "tags": [ - "secret" - ], + "tags": ["secret"], "security": [ { "BearerAuth": [ @@ -10848,7 +10337,7 @@ ] } }, - "/rpc/Builder/AverageD7Retention": { + "/rpc/Analytics/AverageD7Retention": { "post": { "summary": "AverageD7Retention", "requestBody": { @@ -11006,9 +10495,7 @@ } }, "description": "Get average D7 retention metrics", - "tags": [ - "secret" - ], + "tags": ["secret"], "security": [ { "BearerAuth": [ @@ -11018,7 +10505,7 @@ ] } }, - "/rpc/Builder/AverageD14Retention": { + "/rpc/Analytics/AverageD14Retention": { "post": { "summary": "AverageD14Retention", "requestBody": { @@ -11176,9 +10663,7 @@ } }, "description": "Get average D14 retention metrics", - "tags": [ - "secret" - ], + "tags": ["secret"], "security": [ { "BearerAuth": [ @@ -11188,7 +10673,7 @@ ] } }, - "/rpc/Builder/AverageD28Retention": { + "/rpc/Analytics/AverageD28Retention": { "post": { "summary": "AverageD28Retention", "requestBody": { @@ -11346,9 +10831,7 @@ } }, "description": "Get average D28 retention metrics", - "tags": [ - "secret" - ], + "tags": ["secret"], "security": [ { "BearerAuth": [ @@ -11358,7 +10841,7 @@ ] } }, - "/rpc/Builder/MonthlyActiveWalletsBySegment": { + "/rpc/Analytics/MonthlyActiveWalletsBySegment": { "post": { "summary": "MonthlyActiveWalletsBySegment", "requestBody": { @@ -11528,9 +11011,7 @@ } }, "description": "Get monthly active wallets by segment", - "tags": [ - "secret" - ], + "tags": ["secret"], "security": [ { "BearerAuth": [ @@ -11540,7 +11021,7 @@ ] } }, - "/rpc/Builder/MonthlyTransactingWalletsBySegment": { + "/rpc/Analytics/MonthlyTransactingWalletsBySegment": { "post": { "summary": "MonthlyTransactingWalletsBySegment", "requestBody": { @@ -11710,9 +11191,7 @@ } }, "description": "Get monthly transacting wallets by segment", - "tags": [ - "secret" - ], + "tags": ["secret"], "security": [ { "BearerAuth": [ @@ -11722,7 +11201,7 @@ ] } }, - "/rpc/Builder/WeeklyActiveWallets": { + "/rpc/Analytics/WeeklyActiveWallets": { "post": { "summary": "WeeklyActiveWallets", "requestBody": { @@ -11880,9 +11359,7 @@ } }, "description": "Get weekly active wallets", - "tags": [ - "secret" - ], + "tags": ["secret"], "security": [ { "BearerAuth": [ @@ -11903,4 +11380,4 @@ "description": "Endpoints that require a Sequence service token intended to be secret. You can manually generate one on Sequence Builder and pass it as a Bearer Token." } ] -} \ No newline at end of file +} diff --git a/api-references/analytics/endpoints/default/daily-compute-by-service.mdx b/api-references/analytics/endpoints/default/daily-compute-by-service.mdx index 164c204f..a4083ec5 100644 --- a/api-references/analytics/endpoints/default/daily-compute-by-service.mdx +++ b/api-references/analytics/endpoints/default/daily-compute-by-service.mdx @@ -1,4 +1,4 @@ --- title: DailyComputeByService -openapi: ../analytics-api.json post /rpc/Builder/DailyComputeByService +openapi: ../analytics-api.json post /rpc/Analytics/DailyComputeByService --- diff --git a/api-references/analytics/endpoints/default/get-orderbook-collections.mdx b/api-references/analytics/endpoints/default/get-orderbook-collections.mdx index 5b62c04a..54433805 100644 --- a/api-references/analytics/endpoints/default/get-orderbook-collections.mdx +++ b/api-references/analytics/endpoints/default/get-orderbook-collections.mdx @@ -1,4 +1,4 @@ --- title: GetOrderbookCollections -openapi: ../analytics-api.json post /rpc/Builder/GetOrderbookCollections +openapi: ../analytics-api.json post /rpc/Analytics/GetOrderbookCollections --- diff --git a/api-references/analytics/endpoints/secret/average-d-a-u.mdx b/api-references/analytics/endpoints/secret/average-d-a-u.mdx index 508956da..cb9e59a3 100644 --- a/api-references/analytics/endpoints/secret/average-d-a-u.mdx +++ b/api-references/analytics/endpoints/secret/average-d-a-u.mdx @@ -1,4 +1,4 @@ --- title: AverageDAU -openapi: ../analytics-api.json post /rpc/Builder/AverageDAU +openapi: ../analytics-api.json post /rpc/Analytics/AverageDAU --- diff --git a/api-references/analytics/endpoints/secret/average-d1-retention.mdx b/api-references/analytics/endpoints/secret/average-d1-retention.mdx index 4fb80c8b..242f3245 100644 --- a/api-references/analytics/endpoints/secret/average-d1-retention.mdx +++ b/api-references/analytics/endpoints/secret/average-d1-retention.mdx @@ -1,4 +1,4 @@ --- title: AverageD1Retention -openapi: ../analytics-api.json post /rpc/Builder/AverageD1Retention +openapi: ../analytics-api.json post /rpc/Analytics/AverageD1Retention --- diff --git a/api-references/analytics/endpoints/secret/average-d14-retention.mdx b/api-references/analytics/endpoints/secret/average-d14-retention.mdx index 6d512c73..cbc70d31 100644 --- a/api-references/analytics/endpoints/secret/average-d14-retention.mdx +++ b/api-references/analytics/endpoints/secret/average-d14-retention.mdx @@ -1,4 +1,4 @@ --- title: AverageD14Retention -openapi: ../analytics-api.json post /rpc/Builder/AverageD14Retention +openapi: ../analytics-api.json post /rpc/Analytics/AverageD14Retention --- diff --git a/api-references/analytics/endpoints/secret/average-d28-retention.mdx b/api-references/analytics/endpoints/secret/average-d28-retention.mdx index 2fe33ea2..4e367dc6 100644 --- a/api-references/analytics/endpoints/secret/average-d28-retention.mdx +++ b/api-references/analytics/endpoints/secret/average-d28-retention.mdx @@ -1,4 +1,4 @@ --- title: AverageD28Retention -openapi: ../analytics-api.json post /rpc/Builder/AverageD28Retention +openapi: ../analytics-api.json post /rpc/Analytics/AverageD28Retention --- diff --git a/api-references/analytics/endpoints/secret/average-d3-retention.mdx b/api-references/analytics/endpoints/secret/average-d3-retention.mdx index a43c0d11..6c7df7e0 100644 --- a/api-references/analytics/endpoints/secret/average-d3-retention.mdx +++ b/api-references/analytics/endpoints/secret/average-d3-retention.mdx @@ -1,4 +1,4 @@ --- title: AverageD3Retention -openapi: ../analytics-api.json post /rpc/Builder/AverageD3Retention +openapi: ../analytics-api.json post /rpc/Analytics/AverageD3Retention --- diff --git a/api-references/analytics/endpoints/secret/average-d7-retention.mdx b/api-references/analytics/endpoints/secret/average-d7-retention.mdx index 2b87577a..ed25fae9 100644 --- a/api-references/analytics/endpoints/secret/average-d7-retention.mdx +++ b/api-references/analytics/endpoints/secret/average-d7-retention.mdx @@ -1,4 +1,4 @@ --- title: AverageD7Retention -openapi: ../analytics-api.json post /rpc/Builder/AverageD7Retention +openapi: ../analytics-api.json post /rpc/Analytics/AverageD7Retention --- diff --git a/api-references/analytics/endpoints/secret/average-stickiness.mdx b/api-references/analytics/endpoints/secret/average-stickiness.mdx index 5adf617e..3bcd4a26 100644 --- a/api-references/analytics/endpoints/secret/average-stickiness.mdx +++ b/api-references/analytics/endpoints/secret/average-stickiness.mdx @@ -1,4 +1,4 @@ --- title: AverageStickiness -openapi: ../analytics-api.json post /rpc/Builder/AverageStickiness +openapi: ../analytics-api.json post /rpc/Analytics/AverageStickiness --- diff --git a/api-references/analytics/endpoints/secret/compute-by-service.mdx b/api-references/analytics/endpoints/secret/compute-by-service.mdx index 7ec235ef..d442b62e 100644 --- a/api-references/analytics/endpoints/secret/compute-by-service.mdx +++ b/api-references/analytics/endpoints/secret/compute-by-service.mdx @@ -1,4 +1,4 @@ --- title: ComputeByService -openapi: ../analytics-api.json post /rpc/Builder/ComputeByService +openapi: ../analytics-api.json post /rpc/Analytics/ComputeByService --- diff --git a/api-references/analytics/endpoints/secret/d1-retention-by-cohort.mdx b/api-references/analytics/endpoints/secret/d1-retention-by-cohort.mdx index 150e0a0b..c2c36897 100644 --- a/api-references/analytics/endpoints/secret/d1-retention-by-cohort.mdx +++ b/api-references/analytics/endpoints/secret/d1-retention-by-cohort.mdx @@ -1,4 +1,4 @@ --- title: D1RetentionByCohort -openapi: ../analytics-api.json post /rpc/Builder/D1RetentionByCohort +openapi: ../analytics-api.json post /rpc/Analytics/D1RetentionByCohort --- diff --git a/api-references/analytics/endpoints/secret/d14-retention-by-cohort.mdx b/api-references/analytics/endpoints/secret/d14-retention-by-cohort.mdx index 660c0ee2..7dad1132 100644 --- a/api-references/analytics/endpoints/secret/d14-retention-by-cohort.mdx +++ b/api-references/analytics/endpoints/secret/d14-retention-by-cohort.mdx @@ -1,4 +1,4 @@ --- title: D14RetentionByCohort -openapi: ../analytics-api.json post /rpc/Builder/D14RetentionByCohort +openapi: ../analytics-api.json post /rpc/Analytics/D14RetentionByCohort --- diff --git a/api-references/analytics/endpoints/secret/d28-retention-by-cohort.mdx b/api-references/analytics/endpoints/secret/d28-retention-by-cohort.mdx index 1f35606b..3a771bff 100644 --- a/api-references/analytics/endpoints/secret/d28-retention-by-cohort.mdx +++ b/api-references/analytics/endpoints/secret/d28-retention-by-cohort.mdx @@ -1,4 +1,4 @@ --- title: D28RetentionByCohort -openapi: ../analytics-api.json post /rpc/Builder/D28RetentionByCohort +openapi: ../analytics-api.json post /rpc/Analytics/D28RetentionByCohort --- diff --git a/api-references/analytics/endpoints/secret/d3-retention-by-cohort.mdx b/api-references/analytics/endpoints/secret/d3-retention-by-cohort.mdx index a851be6e..faddf33a 100644 --- a/api-references/analytics/endpoints/secret/d3-retention-by-cohort.mdx +++ b/api-references/analytics/endpoints/secret/d3-retention-by-cohort.mdx @@ -1,4 +1,4 @@ --- title: D3RetentionByCohort -openapi: ../analytics-api.json post /rpc/Builder/D3RetentionByCohort +openapi: ../analytics-api.json post /rpc/Analytics/D3RetentionByCohort --- diff --git a/api-references/analytics/endpoints/secret/d7-retention-by-cohort.mdx b/api-references/analytics/endpoints/secret/d7-retention-by-cohort.mdx index 8b4530f4..0095ac7c 100644 --- a/api-references/analytics/endpoints/secret/d7-retention-by-cohort.mdx +++ b/api-references/analytics/endpoints/secret/d7-retention-by-cohort.mdx @@ -1,4 +1,4 @@ --- title: D7RetentionByCohort -openapi: ../analytics-api.json post /rpc/Builder/D7RetentionByCohort +openapi: ../analytics-api.json post /rpc/Analytics/D7RetentionByCohort --- diff --git a/api-references/analytics/endpoints/secret/daily-compute-by-type.mdx b/api-references/analytics/endpoints/secret/daily-compute-by-type.mdx index 1df72f79..05f1498b 100644 --- a/api-references/analytics/endpoints/secret/daily-compute-by-type.mdx +++ b/api-references/analytics/endpoints/secret/daily-compute-by-type.mdx @@ -1,4 +1,4 @@ --- title: DailyComputeByType -openapi: ../analytics-api.json post /rpc/Builder/DailyComputeByType +openapi: ../analytics-api.json post /rpc/Analytics/DailyComputeByType --- diff --git a/api-references/analytics/endpoints/secret/daily-new-wallets.mdx b/api-references/analytics/endpoints/secret/daily-new-wallets.mdx index cb0b454d..53655985 100644 --- a/api-references/analytics/endpoints/secret/daily-new-wallets.mdx +++ b/api-references/analytics/endpoints/secret/daily-new-wallets.mdx @@ -1,4 +1,4 @@ --- title: DailyNewWallets -openapi: ../analytics-api.json post /rpc/Builder/DailyNewWallets +openapi: ../analytics-api.json post /rpc/Analytics/DailyNewWallets --- diff --git a/api-references/analytics/endpoints/secret/daily-wallet-txn-conversion-rate.mdx b/api-references/analytics/endpoints/secret/daily-wallet-txn-conversion-rate.mdx index ebff0b8e..d1b0c26c 100644 --- a/api-references/analytics/endpoints/secret/daily-wallet-txn-conversion-rate.mdx +++ b/api-references/analytics/endpoints/secret/daily-wallet-txn-conversion-rate.mdx @@ -1,4 +1,4 @@ --- title: DailyWalletTxnConversionRate -openapi: ../analytics-api.json post /rpc/Builder/DailyWalletTxnConversionRate +openapi: ../analytics-api.json post /rpc/Analytics/DailyWalletTxnConversionRate --- diff --git a/api-references/analytics/endpoints/secret/market-txn-event-daily.mdx b/api-references/analytics/endpoints/secret/market-txn-event-daily.mdx index 12324b83..f32be14f 100644 --- a/api-references/analytics/endpoints/secret/market-txn-event-daily.mdx +++ b/api-references/analytics/endpoints/secret/market-txn-event-daily.mdx @@ -1,4 +1,4 @@ --- title: MarketTxnEventDaily -openapi: ../analytics-api.json post /rpc/Builder/MarketTxnEventDaily +openapi: ../analytics-api.json post /rpc/Analytics/MarketTxnEventDaily --- diff --git a/api-references/analytics/endpoints/secret/market-txn-event-monthly.mdx b/api-references/analytics/endpoints/secret/market-txn-event-monthly.mdx index 997c5987..8baadd99 100644 --- a/api-references/analytics/endpoints/secret/market-txn-event-monthly.mdx +++ b/api-references/analytics/endpoints/secret/market-txn-event-monthly.mdx @@ -1,4 +1,4 @@ --- title: MarketTxnEventMonthly -openapi: ../analytics-api.json post /rpc/Builder/MarketTxnEventMonthly +openapi: ../analytics-api.json post /rpc/Analytics/MarketTxnEventMonthly --- diff --git a/api-references/analytics/endpoints/secret/market-txn-event-total.mdx b/api-references/analytics/endpoints/secret/market-txn-event-total.mdx index 00f6ba55..7e554c19 100644 --- a/api-references/analytics/endpoints/secret/market-txn-event-total.mdx +++ b/api-references/analytics/endpoints/secret/market-txn-event-total.mdx @@ -1,4 +1,4 @@ --- title: MarketTxnEventTotal -openapi: ../analytics-api.json post /rpc/Builder/MarketTxnEventTotal +openapi: ../analytics-api.json post /rpc/Analytics/MarketTxnEventTotal --- diff --git a/api-references/analytics/endpoints/secret/market-wallets-daily.mdx b/api-references/analytics/endpoints/secret/market-wallets-daily.mdx index 21186fb9..cc71f37a 100644 --- a/api-references/analytics/endpoints/secret/market-wallets-daily.mdx +++ b/api-references/analytics/endpoints/secret/market-wallets-daily.mdx @@ -1,4 +1,4 @@ --- title: MarketWalletsDaily -openapi: ../analytics-api.json post /rpc/Builder/MarketWalletsDaily +openapi: ../analytics-api.json post /rpc/Analytics/MarketWalletsDaily --- diff --git a/api-references/analytics/endpoints/secret/market-wallets-monthly.mdx b/api-references/analytics/endpoints/secret/market-wallets-monthly.mdx index 93d3e299..27c5dba0 100644 --- a/api-references/analytics/endpoints/secret/market-wallets-monthly.mdx +++ b/api-references/analytics/endpoints/secret/market-wallets-monthly.mdx @@ -1,4 +1,4 @@ --- title: MarketWalletsMonthly -openapi: ../analytics-api.json post /rpc/Builder/MarketWalletsMonthly +openapi: ../analytics-api.json post /rpc/Analytics/MarketWalletsMonthly --- diff --git a/api-references/analytics/endpoints/secret/market-wallets-total.mdx b/api-references/analytics/endpoints/secret/market-wallets-total.mdx index cecc9fba..bc369dce 100644 --- a/api-references/analytics/endpoints/secret/market-wallets-total.mdx +++ b/api-references/analytics/endpoints/secret/market-wallets-total.mdx @@ -1,4 +1,4 @@ --- title: MarketWalletsTotal -openapi: ../analytics-api.json post /rpc/Builder/MarketWalletsTotal +openapi: ../analytics-api.json post /rpc/Analytics/MarketWalletsTotal --- diff --git a/api-references/analytics/endpoints/secret/monthly-active-wallets-by-segment.mdx b/api-references/analytics/endpoints/secret/monthly-active-wallets-by-segment.mdx index 87dca17c..6cbb9238 100644 --- a/api-references/analytics/endpoints/secret/monthly-active-wallets-by-segment.mdx +++ b/api-references/analytics/endpoints/secret/monthly-active-wallets-by-segment.mdx @@ -1,4 +1,4 @@ --- title: MonthlyActiveWalletsBySegment -openapi: ../analytics-api.json post /rpc/Builder/MonthlyActiveWalletsBySegment +openapi: ../analytics-api.json post /rpc/Analytics/MonthlyActiveWalletsBySegment --- diff --git a/api-references/analytics/endpoints/secret/monthly-new-wallets.mdx b/api-references/analytics/endpoints/secret/monthly-new-wallets.mdx index 7a419ae8..21aa5f64 100644 --- a/api-references/analytics/endpoints/secret/monthly-new-wallets.mdx +++ b/api-references/analytics/endpoints/secret/monthly-new-wallets.mdx @@ -1,4 +1,4 @@ --- title: MonthlyNewWallets -openapi: ../analytics-api.json post /rpc/Builder/MonthlyNewWallets +openapi: ../analytics-api.json post /rpc/Analytics/MonthlyNewWallets --- diff --git a/api-references/analytics/endpoints/secret/monthly-transacting-wallets-by-segment.mdx b/api-references/analytics/endpoints/secret/monthly-transacting-wallets-by-segment.mdx index 7e6941f9..3ac1afb0 100644 --- a/api-references/analytics/endpoints/secret/monthly-transacting-wallets-by-segment.mdx +++ b/api-references/analytics/endpoints/secret/monthly-transacting-wallets-by-segment.mdx @@ -1,4 +1,4 @@ --- title: MonthlyTransactingWalletsBySegment -openapi: ../analytics-api.json post /rpc/Builder/MonthlyTransactingWalletsBySegment +openapi: ../analytics-api.json post /rpc/Analytics/MonthlyTransactingWalletsBySegment --- diff --git a/api-references/analytics/endpoints/secret/monthly-wallet-txn-conversion-rate.mdx b/api-references/analytics/endpoints/secret/monthly-wallet-txn-conversion-rate.mdx index 0fce712e..cf36e307 100644 --- a/api-references/analytics/endpoints/secret/monthly-wallet-txn-conversion-rate.mdx +++ b/api-references/analytics/endpoints/secret/monthly-wallet-txn-conversion-rate.mdx @@ -1,4 +1,4 @@ --- title: MonthlyWalletTxnConversionRate -openapi: ../analytics-api.json post /rpc/Builder/MonthlyWalletTxnConversionRate +openapi: ../analytics-api.json post /rpc/Analytics/MonthlyWalletTxnConversionRate --- diff --git a/api-references/analytics/endpoints/secret/rolling-stickiness.mdx b/api-references/analytics/endpoints/secret/rolling-stickiness.mdx index 49a8db99..24f64db4 100644 --- a/api-references/analytics/endpoints/secret/rolling-stickiness.mdx +++ b/api-references/analytics/endpoints/secret/rolling-stickiness.mdx @@ -1,4 +1,4 @@ --- title: RollingStickiness -openapi: ../analytics-api.json post /rpc/Builder/RollingStickiness +openapi: ../analytics-api.json post /rpc/Analytics/RollingStickiness --- diff --git a/api-references/analytics/endpoints/secret/total-compute.mdx b/api-references/analytics/endpoints/secret/total-compute.mdx index 8e211c3c..fd71593b 100644 --- a/api-references/analytics/endpoints/secret/total-compute.mdx +++ b/api-references/analytics/endpoints/secret/total-compute.mdx @@ -1,4 +1,4 @@ --- title: TotalCompute -openapi: ../analytics-api.json post /rpc/Builder/TotalCompute +openapi: ../analytics-api.json post /rpc/Analytics/TotalCompute --- diff --git a/api-references/analytics/endpoints/secret/total-new-wallets.mdx b/api-references/analytics/endpoints/secret/total-new-wallets.mdx index 6043a58a..1461e4ab 100644 --- a/api-references/analytics/endpoints/secret/total-new-wallets.mdx +++ b/api-references/analytics/endpoints/secret/total-new-wallets.mdx @@ -1,4 +1,4 @@ --- title: TotalNewWallets -openapi: ../analytics-api.json post /rpc/Builder/TotalNewWallets +openapi: ../analytics-api.json post /rpc/Analytics/TotalNewWallets --- diff --git a/api-references/analytics/endpoints/secret/total-wallet-txn-conversion-rate.mdx b/api-references/analytics/endpoints/secret/total-wallet-txn-conversion-rate.mdx index 9e4a3184..3518dc7d 100644 --- a/api-references/analytics/endpoints/secret/total-wallet-txn-conversion-rate.mdx +++ b/api-references/analytics/endpoints/secret/total-wallet-txn-conversion-rate.mdx @@ -1,4 +1,4 @@ --- title: TotalWalletTxnConversionRate -openapi: ../analytics-api.json post /rpc/Builder/TotalWalletTxnConversionRate +openapi: ../analytics-api.json post /rpc/Analytics/TotalWalletTxnConversionRate --- diff --git a/api-references/analytics/endpoints/secret/wallets-by-browser.mdx b/api-references/analytics/endpoints/secret/wallets-by-browser.mdx index 5ed9e6ab..077fe40f 100644 --- a/api-references/analytics/endpoints/secret/wallets-by-browser.mdx +++ b/api-references/analytics/endpoints/secret/wallets-by-browser.mdx @@ -1,4 +1,4 @@ --- title: WalletsByBrowser -openapi: ../analytics-api.json post /rpc/Builder/WalletsByBrowser +openapi: ../analytics-api.json post /rpc/Analytics/WalletsByBrowser --- diff --git a/api-references/analytics/endpoints/secret/wallets-by-country.mdx b/api-references/analytics/endpoints/secret/wallets-by-country.mdx index 1da0f7f6..943946b3 100644 --- a/api-references/analytics/endpoints/secret/wallets-by-country.mdx +++ b/api-references/analytics/endpoints/secret/wallets-by-country.mdx @@ -1,4 +1,4 @@ --- title: WalletsByCountry -openapi: ../analytics-api.json post /rpc/Builder/WalletsByCountry +openapi: ../analytics-api.json post /rpc/Analytics/WalletsByCountry --- diff --git a/api-references/analytics/endpoints/secret/wallets-by-device.mdx b/api-references/analytics/endpoints/secret/wallets-by-device.mdx index 9dcd505b..aee070c9 100644 --- a/api-references/analytics/endpoints/secret/wallets-by-device.mdx +++ b/api-references/analytics/endpoints/secret/wallets-by-device.mdx @@ -1,4 +1,4 @@ --- title: WalletsByDevice -openapi: ../analytics-api.json post /rpc/Builder/WalletsByDevice +openapi: ../analytics-api.json post /rpc/Analytics/WalletsByDevice --- diff --git a/api-references/analytics/endpoints/secret/wallets-by-o-s.mdx b/api-references/analytics/endpoints/secret/wallets-by-o-s.mdx index fe47cbf5..4fd52c36 100644 --- a/api-references/analytics/endpoints/secret/wallets-by-o-s.mdx +++ b/api-references/analytics/endpoints/secret/wallets-by-o-s.mdx @@ -1,4 +1,4 @@ --- title: WalletsByOS -openapi: ../analytics-api.json post /rpc/Builder/WalletsByOS +openapi: ../analytics-api.json post /rpc/Analytics/WalletsByOS --- diff --git a/api-references/analytics/endpoints/secret/wallets-daily.mdx b/api-references/analytics/endpoints/secret/wallets-daily.mdx index 637395ed..f775540c 100644 --- a/api-references/analytics/endpoints/secret/wallets-daily.mdx +++ b/api-references/analytics/endpoints/secret/wallets-daily.mdx @@ -1,4 +1,4 @@ --- title: WalletsDaily -openapi: ../analytics-api.json post /rpc/Builder/WalletsDaily +openapi: ../analytics-api.json post /rpc/Analytics/WalletsDaily --- diff --git a/api-references/analytics/endpoints/secret/wallets-monthly.mdx b/api-references/analytics/endpoints/secret/wallets-monthly.mdx index 4ace6163..360628a1 100644 --- a/api-references/analytics/endpoints/secret/wallets-monthly.mdx +++ b/api-references/analytics/endpoints/secret/wallets-monthly.mdx @@ -1,4 +1,4 @@ --- title: WalletsMonthly -openapi: ../analytics-api.json post /rpc/Builder/WalletsMonthly +openapi: ../analytics-api.json post /rpc/Analytics/WalletsMonthly --- diff --git a/api-references/analytics/endpoints/secret/wallets-total.mdx b/api-references/analytics/endpoints/secret/wallets-total.mdx index 9ea376a4..6ef886ed 100644 --- a/api-references/analytics/endpoints/secret/wallets-total.mdx +++ b/api-references/analytics/endpoints/secret/wallets-total.mdx @@ -1,4 +1,4 @@ --- title: WalletsTotal -openapi: ../analytics-api.json post /rpc/Builder/WalletsTotal +openapi: ../analytics-api.json post /rpc/Analytics/WalletsTotal --- diff --git a/api-references/analytics/endpoints/secret/wallets-txn-sent-daily.mdx b/api-references/analytics/endpoints/secret/wallets-txn-sent-daily.mdx index 60479d8d..dada11a6 100644 --- a/api-references/analytics/endpoints/secret/wallets-txn-sent-daily.mdx +++ b/api-references/analytics/endpoints/secret/wallets-txn-sent-daily.mdx @@ -1,4 +1,4 @@ --- title: WalletsTxnSentDaily -openapi: ../analytics-api.json post /rpc/Builder/WalletsTxnSentDaily +openapi: ../analytics-api.json post /rpc/Analytics/WalletsTxnSentDaily --- diff --git a/api-references/analytics/endpoints/secret/wallets-txn-sent-monthly.mdx b/api-references/analytics/endpoints/secret/wallets-txn-sent-monthly.mdx index 2dd267b4..3ddac386 100644 --- a/api-references/analytics/endpoints/secret/wallets-txn-sent-monthly.mdx +++ b/api-references/analytics/endpoints/secret/wallets-txn-sent-monthly.mdx @@ -1,4 +1,4 @@ --- title: WalletsTxnSentMonthly -openapi: ../analytics-api.json post /rpc/Builder/WalletsTxnSentMonthly +openapi: ../analytics-api.json post /rpc/Analytics/WalletsTxnSentMonthly --- diff --git a/api-references/analytics/endpoints/secret/wallets-txn-sent-total.mdx b/api-references/analytics/endpoints/secret/wallets-txn-sent-total.mdx index ca16220d..ce0870d7 100644 --- a/api-references/analytics/endpoints/secret/wallets-txn-sent-total.mdx +++ b/api-references/analytics/endpoints/secret/wallets-txn-sent-total.mdx @@ -1,4 +1,4 @@ --- title: WalletsTxnSentTotal -openapi: ../analytics-api.json post /rpc/Builder/WalletsTxnSentTotal +openapi: ../analytics-api.json post /rpc/Analytics/WalletsTxnSentTotal --- diff --git a/api-references/analytics/endpoints/secret/weekly-active-wallets.mdx b/api-references/analytics/endpoints/secret/weekly-active-wallets.mdx index 5cc98e4f..fed9a71c 100644 --- a/api-references/analytics/endpoints/secret/weekly-active-wallets.mdx +++ b/api-references/analytics/endpoints/secret/weekly-active-wallets.mdx @@ -1,4 +1,4 @@ --- title: WeeklyActiveWallets -openapi: ../analytics-api.json post /rpc/Builder/WeeklyActiveWallets +openapi: ../analytics-api.json post /rpc/Analytics/WeeklyActiveWallets --- diff --git a/api-references/analytics/examples/marketplace.mdx b/api-references/analytics/examples/marketplace.mdx index 52395dd0..2ef188b1 100644 --- a/api-references/analytics/examples/marketplace.mdx +++ b/api-references/analytics/examples/marketplace.mdx @@ -6,10 +6,10 @@ sidebarTitle: Marketplaces Additionally, you can get deep insights into how your Sequence Marketplace is performing so you can report, track, and refine to earn more revenue. -Replace the PROJECT_ID and SECRET_API_ACCESS_KEY variables with your project ID and secret token from Sequence Builder. + Replace the PROJECT_ID and SECRET_API_ACCESS_KEY variables with your project ID and + secret token from Sequence Builder. - ## Fetch Transactions on your Marketplace Fetching the number of transaction events on the Sequence marketplace - these can used either be by total or a fixed time interval. @@ -18,7 +18,7 @@ Fetching the number of transaction events on the Sequence marketplace - these ca ```sh cURL -curl 'https://api.sequence.build/rpc/Builder/MarketTxnEventTotal' \ +curl 'https://api.sequence.build/rpc/Analytics/MarketTxnEventTotal' \ -H 'accept: */*' \ -H 'authorization: BEARER ' \ -H 'content-type: application/json' \ @@ -30,32 +30,33 @@ curl 'https://api.sequence.build/rpc/Builder/MarketTxnEventTotal' \ // import fetch from "cross-fetch"; (async () => { const res = await fetch( - "https://api.sequence.build/rpc/Builder/MarketTxnEventTotal", + "https://api.sequence.build/rpc/Analytics/MarketTxnEventTotal", { method: "POST", headers: { - "Content-Type": "application/json", + "Content-Type": "application/json" }, body: JSON.stringify({ - "filter":{ - "projectId":4859, - "startDate":"2024-01-23", - "endDate":"2024-05-23", - "dateInterval":"DAY" - } - }), + filter: { + projectId: 4859, + startDate: "2024-01-23", + endDate: "2024-05-23", + dateInterval: "DAY" + } + }) } ); console.log("res", await res.json()); })(); ``` + ### Time Interval ```sh cURL -curl 'https://api.sequence.build/rpc/Builder/MarketTxnEventDaily' \ +curl 'https://api.sequence.build/rpc/Analytics/MarketTxnEventDaily' \ -H 'accept: */*' \ -H 'authorization: BEARER ' \ -H 'content-type: application/json' \ @@ -67,34 +68,37 @@ curl 'https://api.sequence.build/rpc/Builder/MarketTxnEventDaily' \ // import fetch from "cross-fetch"; (async () => { const res = await fetch( - "https://api.sequence.build/rpc/Builder/MarketTxnEventDaily", + "https://api.sequence.build/rpc/Analytics/MarketTxnEventDaily", { method: "POST", headers: { - "Content-Type": "application/json", + "Content-Type": "application/json" }, body: JSON.stringify({ - "filter":{ - "projectId":4859, - "startDate":"2024-01-23", - "endDate":"2024-05-23", - "dateInterval":"DAY" - } - }), + filter: { + projectId: 4859, + startDate: "2024-01-23", + endDate: "2024-05-23", + dateInterval: "DAY" + } + }) } ); console.log("res", await res.json()); })(); ``` + ## Fetch Wallets on your Marketplace + Fetch wallets that have interacted with your marketplace - either by total across all time or broken down by days, weeks or months. ### Total + ```sh cURL -curl 'https://api.sequence.build/rpc/Builder/MarketWalletsTotal' \ +curl 'https://api.sequence.build/rpc/Analytics/MarketWalletsTotal' \ -H 'accept: */*' \ -H 'authorization: BEARER ' \ -H 'content-type: application/json' \ @@ -105,33 +109,31 @@ curl 'https://api.sequence.build/rpc/Builder/MarketWalletsTotal' \ // Works in both a Webapp (browser) or Node.js by importing cross-fetch: // import fetch from "cross-fetch"; (async () => { - const res = await fetch( - "https://api.sequence.build/rpc/Builder/MarketWalletsTotal", - { - method: "POST", - headers: { - "Content-Type": "application/json", - }, - body: JSON.stringify({ - "filter":{ - "projectId":4859, - "startDate":"2024-01-23", - "endDate":"2024-05-23", - "dateInterval":"DAY" - } - }), - } - ); + const res = await fetch("https://api.sequence.build/rpc/Analytics/MarketWalletsTotal", { + method: "POST", + headers: { + "Content-Type": "application/json" + }, + body: JSON.stringify({ + filter: { + projectId: 4859, + startDate: "2024-01-23", + endDate: "2024-05-23", + dateInterval: "DAY" + } + }) + }); console.log("res", await res.json()); })(); ``` + ### Time Interval ```sh cURL -curl 'https://api.sequence.build/rpc/Builder/MarketWalletsDaily' \ +curl 'https://api.sequence.build/rpc/Analytics/MarketWalletsDaily' \ -H 'accept: */*' \ -H 'authorization: BEARER ' \ -H 'content-type: application/json' \ @@ -142,28 +144,25 @@ curl 'https://api.sequence.build/rpc/Builder/MarketWalletsDaily' \ // Works in both a Webapp (browser) or Node.js by importing cross-fetch: // import fetch from "cross-fetch"; (async () => { - const res = await fetch( - "https://api.sequence.build/rpc/Builder/MarketWalletsDaily", - { - method: "POST", - headers: { - "Content-Type": "application/json", - }, - body: JSON.stringify({ - "filter":{ - "projectId":4859, - "startDate":"2024-01-23", - "endDate":"2024-05-23", - "dateInterval":"DAY" - } - }), - } - ); + const res = await fetch("https://api.sequence.build/rpc/Analytics/MarketWalletsDaily", { + method: "POST", + headers: { + "Content-Type": "application/json" + }, + body: JSON.stringify({ + filter: { + projectId: 4859, + startDate: "2024-01-23", + endDate: "2024-05-23", + dateInterval: "DAY" + } + }) + }); console.log("res", await res.json()); })(); ``` - + ## Schema @@ -180,7 +179,7 @@ All wallet analytic endpoints follow a similar request schema - `marketStats` (marketStats[]) [ - `value` - - `buyItems` (uint64) -- number of items bought. - - `sellItems` (uint64) -- number of items sold + - `buyItems` (uint64) -- number of items bought. + - `sellItems` (uint64) -- number of items sold - `label` (string) -- label associated with the corresponding endpoint - ] \ No newline at end of file + ] diff --git a/api-references/analytics/examples/wallets.mdx b/api-references/analytics/examples/wallets.mdx index 14a7d874..a38e2e38 100644 --- a/api-references/analytics/examples/wallets.mdx +++ b/api-references/analytics/examples/wallets.mdx @@ -6,15 +6,17 @@ sidebarTitle: Wallets A common use case is to see the number of wallets that are integrated with your project. We have a variety of endpoints that can be used for tracking and reporting fine-grained data such as device, country, and more so you can precisely identify -Replace the PROJECT_ID and SECRET_API_ACCESS_KEY variables with your project ID and secret token from Sequence Builder. + Replace the PROJECT_ID and SECRET_API_ACCESS_KEY variables with your project ID and + secret token from Sequence Builder. ## Fetch wallets for a time interval for a project ID + Here we can pass a specific date range along with the dateInterval parameter in order to get wallets within a time interval. The endpoints can use "DAY", "WEEK" or "MONTH" as possible options. ```sh cURL -curl 'https://api.sequence.build/rpc/Builder/WalletsDaily' \ +curl 'https://api.sequence.build/rpc/Analytics/WalletsDaily' \ -H 'accept: */*' \ -H 'authorization: BEARER ' \ -H 'content-type: application/json' \ @@ -26,35 +28,33 @@ curl 'https://api.sequence.build/rpc/Builder/WalletsDaily' \ // import fetch from "cross-fetch"; (async () => { - const res = await fetch( - "https://api.sequence.build/rpc/Builder/WalletsDaily", - { - method: "POST", - headers: { - "Content-Type": "application/json", - }, - body: JSON.stringify({ - "filter":{ - "projectId":4859, - "startDate":"2024-01-23", - "endDate":"2024-05-23", - "dateInterval":"DAY" - } - }), - } - ); + const res = await fetch("https://api.sequence.build/rpc/Analytics/WalletsDaily", { + method: "POST", + headers: { + "Content-Type": "application/json" + }, + body: JSON.stringify({ + filter: { + projectId: 4859, + startDate: "2024-01-23", + endDate: "2024-05-23", + dateInterval: "DAY" + } + }) + }); console.log("res", await res.json()); })(); ``` - + ## Fetch wallets by Country + You can also fetch wallets by country to see where your users are logged in from. ```sh cURL -curl 'https://api.sequence.build/rpc/Builder/WalletsByCountry' \ +curl 'https://api.sequence.build/rpc/Analytics/WalletsByCountry' \ -H 'accept: */*' \ -H 'authorization: BEARER ' \ -H 'content-type: application/json' \ @@ -66,34 +66,33 @@ curl 'https://api.sequence.build/rpc/Builder/WalletsByCountry' \ // import fetch from "cross-fetch"; (async () => { - const res = await fetch( - "https://api.sequence.build/rpc/Builder/WalletsByCountry", - { - method: "POST", - headers: { - "Content-Type": "application/json", - }, - body: JSON.stringify({ - "filter":{ - "projectId":4859, - "startDate":"2024-01-23", - "endDate":"2024-05-23", - "dateInterval":"DAY" - } - }), - } - ); + const res = await fetch("https://api.sequence.build/rpc/Analytics/WalletsByCountry", { + method: "POST", + headers: { + "Content-Type": "application/json" + }, + body: JSON.stringify({ + filter: { + projectId: 4859, + startDate: "2024-01-23", + endDate: "2024-05-23", + dateInterval: "DAY" + } + }) + }); console.log("res", await res.json()); })(); ``` + ## Fetch wallets by Device + Additionally, you may want to query by device to get an aggregrated snapshot of where your users are authenticating from. ```sh cURL -curl 'https://api.sequence.build/rpc/Builder/WalletsByDevice' \ +curl 'https://api.sequence.build/rpc/Analytics/WalletsByDevice' \ -H 'accept: */*' \ -H 'authorization: BEARER ' \ -H 'content-type: application/json' \ @@ -105,37 +104,35 @@ curl 'https://api.sequence.build/rpc/Builder/WalletsByDevice' \ // import fetch from "cross-fetch"; (async () => { - const res = await fetch( - "https://api.sequence.build/rpc/Builder/WalletsByDevice", - { - method: "POST", - headers: { - "Content-Type": "application/json", - }, - body: JSON.stringify({ - "filter":{ - "projectId":4859, - "startDate":"2024-01-23", - "endDate":"2024-05-23", - "dateInterval":"DAY" - } - }), - } - ); + const res = await fetch("https://api.sequence.build/rpc/Analytics/WalletsByDevice", { + method: "POST", + headers: { + "Content-Type": "application/json" + }, + body: JSON.stringify({ + filter: { + projectId: 4859, + startDate: "2024-01-23", + endDate: "2024-05-23", + dateInterval: "DAY" + } + }) + }); console.log("res", await res.json()); })(); ``` - + ## Fetch transactions by wallets + Lastly, you may want to fetch the number of transactions by wallets - these can used either by total or a fixed time interval. ### Total ```sh cURL -curl 'https://api.sequence.build/rpc/Builder/WalletsTxnSentTotal' \ +curl 'https://api.sequence.build/rpc/Analytics/WalletsTxnSentTotal' \ -H 'accept: */*' \ -H 'authorization: BEARER ' \ -H 'content-type: application/json' \ @@ -148,32 +145,33 @@ curl 'https://api.sequence.build/rpc/Builder/WalletsTxnSentTotal' \ (async () => { const res = await fetch( - "https://api.sequence.build/rpc/Builder/WalletsTxnSentTotal", + "https://api.sequence.build/rpc/Analytics/WalletsTxnSentTotal", { method: "POST", headers: { - "Content-Type": "application/json", + "Content-Type": "application/json" }, body: JSON.stringify({ - "filter":{ - "projectId":4859, - "startDate":"2024-01-23", - "endDate":"2024-05-23", - "dateInterval":"DAY" - } - }), + filter: { + projectId: 4859, + startDate: "2024-01-23", + endDate: "2024-05-23", + dateInterval: "DAY" + } + }) } ); console.log("res", await res.json()); })(); ``` + ### Time Interval ```sh cURL -curl 'https://api.sequence.build/rpc/Builder/WalletsTxnSentDaily' \ +curl 'https://api.sequence.build/rpc/Analytics/WalletsTxnSentDaily' \ -H 'accept: */*' \ -H 'authorization: BEARER ' \ -H 'content-type: application/json' \ @@ -186,25 +184,26 @@ curl 'https://api.sequence.build/rpc/Builder/WalletsTxnSentDaily' \ (async () => { const res = await fetch( - "https://api.sequence.build/rpc/Builder/WalletsTxnSentDaily", + "https://api.sequence.build/rpc/Analytics/WalletsTxnSentDaily", { method: "POST", headers: { - "Content-Type": "application/json", + "Content-Type": "application/json" }, body: JSON.stringify({ - "filter":{ - "projectId":4859, - "startDate":"2024-01-23", - "endDate":"2024-05-23", - "dateInterval":"DAY" - } - }), + filter: { + projectId: 4859, + startDate: "2024-01-23", + endDate: "2024-05-23", + dateInterval: "DAY" + } + }) } ); console.log("res", await res.json()); })(); ``` + ## Schema @@ -221,4 +220,4 @@ All wallet analytic endpoints follow a similar request schema - Response (in JSON): - `walletStats` (walletStats[]) - `value` (uint64) -- # of wallets matching the query - - `label` (string) -- label associated with the corresponding endpoint \ No newline at end of file + - `label` (string) -- label associated with the corresponding endpoint diff --git a/api-references/analytics/overview.mdx b/api-references/analytics/overview.mdx index 10e0e5d5..097d0b29 100644 --- a/api-references/analytics/overview.mdx +++ b/api-references/analytics/overview.mdx @@ -16,6 +16,7 @@ You can see the [full list of supported networks here](https://status.sequence.i ## Getting Started ### Obtaining a Service Account & Token + You will need to first obtain a Service Account & Token to call this from your backend. Importantly, this is a secret key and should not be exposed publicly. 1. Create a New Project using our [Builder](https://sequence.build). Navigate to Settings > API Keys > Add Service Account. @@ -29,7 +30,7 @@ Keep in mind, in contrast to our Public API Access key - this Secret API Token s Now you are ready to send a request, make sure to change the below the SECRET_API_ACCESS_KEY below with your access key as well as the PROJECT_ID which can be found in the URL as a set of integers while in your project on [sequence.build](https://sequence.build) ```sh cURL -curl 'https://api.sequence.build/rpc/Builder/WalletsTotal' \ +curl 'https://api.sequence.build/rpc/Analytics/WalletsTotal' \ -H 'accept: */*' \ -H 'authorization: BEARER ' \ -H 'content-type: application/json' \ @@ -37,7 +38,9 @@ curl 'https://api.sequence.build/rpc/Builder/WalletsTotal' \ ``` ### More Examples + Now that you've gotten started - try out a few of our other examples: + - [Fetch wallets within a time interval](/api-references/analytics/examples/wallets#fetch-wallets-for-a-time-interval-for-a-project-id) - [Fetch transactions by wallets](/api-references/analytics/examples/wallets#fetch-transactions-by-wallets) - [Fetch wallets by device](/api-references/analytics/examples/wallets#fetch-wallets-by-device) diff --git a/guides/analytics-guide.mdx b/guides/analytics-guide.mdx index ed33d2b4..67fbbf02 100644 --- a/guides/analytics-guide.mdx +++ b/guides/analytics-guide.mdx @@ -1,12 +1,9 @@ --- - title: "Sequence Analytics API in Dune" description: Learn how to use the Sequence Builder analytics feature to query user data for your project with a serverless Cloudflare Worker. sidebarTitle: Leverage Sequence Analytics API in Dune --- - - Time to complete: 20-30 minutes In this guide, we will show you how to use the [Sequence Builder](https://sequence.build/) analytics feature to query information about usage from your users for your specific project leveraging a serverless [Cloudflare Worker](https://www.cloudflare.com/). @@ -20,7 +17,8 @@ You can view an example of the output for this guide [here](https://dune.com/mmh 3. Dune Dashboard: Create a view into the data as a shareable dashboard -A reference to the template code can be found [here](https://github.com/0xsequence-demos/template-cloudflare-worker-wallets-analytics) + A reference to the template code can be found + [here](https://github.com/0xsequence-demos/template-cloudflare-worker-wallets-analytics) ## 1. Access Key Management @@ -39,6 +37,7 @@ First start by accessing settings, and selecting the API Keys card: Scroll down and select `+ Add Service Account`: + ![builder settings add service account](/images/builder/builder_settings_add_service_account.png) @@ -87,8 +86,9 @@ To complete this step, you should press enter 4 times after `wrangler init` with This will clone down a starter repository that can be used to deploy code to the cloud. -Local API Testing
-At any point in the guide, you can use the `wrangler dev` command in the project folder for local testing + Local API Testing
+ At any point in the guide, you can use the `wrangler dev` command in the project folder for + local testing
#### Deploy Test @@ -112,9 +112,9 @@ Then include the `Env` type with the variables in `index.ts`: ```ts export interface Env { - PROJECT_ID: number; - SECRET_API_ACCESS_KEY: string; - DAYS: number; + PROJECT_ID: number; + SECRET_API_ACCESS_KEY: string; + DAYS: number; } ``` @@ -122,18 +122,18 @@ Replace the existing `fetch` function with the following mocked function calls: ```ts export default { - async fetch(request: Request, env: Env, ctx: ExecutionContext): Promise { - const url = new URL(request.url); - - // Handle different endpoints - if (url.pathname === "/dailyActiveUsers") { - return handleDailyWallets(env, request); - } else if (url.pathname === "/totalTransactionsSent") { - return handleTotalTxns(env, request); - } else { - return new Response("No function for this URL", { status: 405 }); - } - }, + async fetch(request: Request, env: Env, ctx: ExecutionContext): Promise { + const url = new URL(request.url); + + // Handle different endpoints + if (url.pathname === "/dailyActiveUsers") { + return handleDailyWallets(env, request); + } else if (url.pathname === "/totalTransactionsSent") { + return handleTotalTxns(env, request); + } else { + return new Response("No function for this URL", {status: 405}); + } + } }; ``` @@ -141,12 +141,12 @@ Using the following functions: ```ts const handleDailyWallets = async (env: Env, request: Request) => { - return new Response(JSON.stringify({endpoint: 'daily'}), { status: 200 }); -} + return new Response(JSON.stringify({endpoint: "daily"}), {status: 200}); +}; const handleTotalTxns = async (env: Env, request: Request) => { - return new Response(JSON.stringify({endpoint: 'total'}), { status: 200 }); -} + return new Response(JSON.stringify({endpoint: "total"}), {status: 200}); +}; ```
@@ -155,21 +155,21 @@ Next, include the following utility functions to parse the correct date from the ```ts const endDate = () => { - const today = new Date(); - return today.toISOString().substring(0, 10); // only including the YYYY-MM-DD date -} + const today = new Date(); + return today.toISOString().substring(0, 10); // only including the YYYY-MM-DD date +}; const startDate = (env: Env) => { - const today = new Date(); - - // Format today's date as a string - const daysBefore = new Date(today); - daysBefore.setDate(daysBefore.getDate() - env.DAYS); - - // Format the date 7 days before as a string by only including the YYYY-MM-DD date - const daysBeforeString = daysBefore.toISOString().substring(0, 10); - return daysBeforeString -} + const today = new Date(); + + // Format today's date as a string + const daysBefore = new Date(today); + daysBefore.setDate(daysBefore.getDate() - env.DAYS); + + // Format the date 7 days before as a string by only including the YYYY-MM-DD date + const daysBeforeString = daysBefore.toISOString().substring(0, 10); + return daysBeforeString; +}; ``` @@ -179,29 +179,27 @@ Now, handle the `Daily Active Users` request by using the following function, th ```ts const handleDailyWallets = async (env: Env, request: Request) => { - const resp = await fetch( - `https://api.sequence.build/rpc/Builder/WalletsDaily`, - { - method: 'POST', - headers: { - 'Content-Type': 'application/json', - 'Authorization': `Bearer ${env.SECRET_API_ACCESS_KEY}` - }, - body: JSON.stringify({ - filter: { - dateInterval: 'DAY', - endDate: endDate(), - projectId: env.PROJECT_ID, - startDate: startDate(env) - } - }) - } - ) - - const data: any = await resp.json(); - return new Response(JSON.stringify(data.walletStats), { status: 200 }); -} + const resp = await fetch(`https://api.sequence.build/rpc/Analytics/WalletsDaily`, { + method: "POST", + headers: { + "Content-Type": "application/json", + Authorization: `Bearer ${env.SECRET_API_ACCESS_KEY}` + }, + body: JSON.stringify({ + filter: { + dateInterval: "DAY", + endDate: endDate(), + projectId: env.PROJECT_ID, + startDate: startDate(env) + } + }) + }); + + const data: any = await resp.json(); + return new Response(JSON.stringify(data.walletStats), {status: 200}); +}; ``` + @@ -209,28 +207,28 @@ Finally, add the following function for the `Total Transactions Sent`: ```ts const handleTotalTxns = async (env: Env, request: Request) => { - const resp = await fetch( - `https://api.sequence.build/rpc/Builder/WalletsTxnSentTotal`, - { - method: 'POST', - headers: { - 'Content-Type': 'application/json', - 'Authorization': `Bearer ${env.SECRET_API_ACCESS_KEY}` - }, - body: JSON.stringify({ - filter: { - dateInterval: 'DAY', - endDate: endDate(), - projectId: env.PROJECT_ID, - startDate: startDate(env) - } - }) - } - ) - - const data: any = await resp.json(); - return new Response(JSON.stringify(data.walletStats), { status: 200 }); -} + const resp = await fetch( + `https://api.sequence.build/rpc/Analytics/WalletsTxnSentTotal`, + { + method: "POST", + headers: { + "Content-Type": "application/json", + Authorization: `Bearer ${env.SECRET_API_ACCESS_KEY}` + }, + body: JSON.stringify({ + filter: { + dateInterval: "DAY", + endDate: endDate(), + projectId: env.PROJECT_ID, + startDate: startDate(env) + } + }) + } + ); + + const data: any = await resp.json(); + return new Response(JSON.stringify(data.walletStats), {status: 200}); +}; ``` @@ -239,22 +237,22 @@ Included in the Sequence Analytics API is the days with zero activity removed fr ```typescript const fillMissingDates = (data: any[], startDate: string, endDate: string) => { - const filledData: { value: number, label: string }[] = []; - const start = new Date(startDate); - const end = new Date(endDate); - - for (let d = new Date(start); d <= end; d.setDate(d.getDate() + 1)) { - const dateString = d.toISOString().substring(0, 10); - const existingData = data.find(entry => entry.label === dateString); - if (existingData) { - filledData.push(existingData); - } else { - filledData.push({ value: 0, label: dateString }); - } - } - - return filledData; -} + const filledData: {value: number; label: string}[] = []; + const start = new Date(startDate); + const end = new Date(endDate); + + for (let d = new Date(start); d <= end; d.setDate(d.getDate() + 1)) { + const dateString = d.toISOString().substring(0, 10); + const existingData = data.find((entry) => entry.label === dateString); + if (existingData) { + filledData.push(existingData); + } else { + filledData.push({value: 0, label: dateString}); + } + } + + return filledData; +}; ``` Then for **both** call responses include the following method call with the `walletStats` data passed in: @@ -273,7 +271,8 @@ Then for **both** call responses include the following method call with the `wal Now you can test your API by calling the respective paths with host name (`/dailyActiveUsers` & `/totalTransactionsSent`) once you have redeployed with `wrangler deploy`. -For more examples of endpoints available through the Analytics API, please check out the [overview](/api-references/analytics/overview) page. + For more examples of endpoints available through the Analytics API, please check out the + [overview](/api-references/analytics/overview) page. ## 3. Dune Dashboard @@ -304,9 +303,11 @@ FROM UNNEST( ) AS t(label, value) ``` + Once the results have been returned, create a `New visualization`. Then, select `Add visualization` after the default `Bar chart` is selected from the dropdown (but feel free to customize this). + ![add visualization](/images/guides/analytics/dune_add_visualization.png) @@ -339,6 +340,7 @@ Then, select `Add visualization` and scroll down to `Counter` to create a counte Access the buttons that read `Create` > `New dashboard` and input a name for the new dashboard. + ![dune create dashboard](/images/guides/analytics/dune_create_dashboard.png) @@ -353,7 +355,6 @@ Once for each query, search for the name in the modal and select `Add` for each -Congratulations, you're now ready to share your project's data usage with your teammates or community. Finish by clicking the `Share` button. - -![dune share dashboard](/images/guides/analytics/dune_share_dashboard.png) - \ No newline at end of file +Congratulations, you're now ready to share your project's data usage with your teammates or community. Finish by clicking the `Share` button. + +![dune share dashboard](/images/guides/analytics/dune_share_dashboard.png)