@distilled.cloud/coinbase 0.27.0 → 0.28.1
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/lib/operations/addEndUserEvmAccount.d.ts +13 -20
- package/lib/operations/addEndUserEvmAccount.d.ts.map +1 -1
- package/lib/operations/addEndUserEvmAccount.js +1 -3
- package/lib/operations/addEndUserEvmAccount.js.map +1 -1
- package/lib/operations/addEndUserEvmSmartAccount.d.ts +15 -24
- package/lib/operations/addEndUserEvmSmartAccount.d.ts.map +1 -1
- package/lib/operations/addEndUserEvmSmartAccount.js +1 -3
- package/lib/operations/addEndUserEvmSmartAccount.js.map +1 -1
- package/lib/operations/addEndUserSolanaAccount.d.ts +14 -21
- package/lib/operations/addEndUserSolanaAccount.d.ts.map +1 -1
- package/lib/operations/addEndUserSolanaAccount.js +2 -4
- package/lib/operations/addEndUserSolanaAccount.js.map +1 -1
- package/lib/operations/createDelegationForEndUserAccount.d.ts +34 -0
- package/lib/operations/createDelegationForEndUserAccount.d.ts.map +1 -0
- package/lib/operations/createDelegationForEndUserAccount.js +44 -0
- package/lib/operations/createDelegationForEndUserAccount.js.map +1 -0
- package/lib/operations/createDepositDestination.d.ts +34 -0
- package/lib/operations/createDepositDestination.d.ts.map +1 -0
- package/lib/operations/createDepositDestination.js +50 -0
- package/lib/operations/createDepositDestination.js.map +1 -0
- package/lib/operations/createEndUser.d.ts +99 -84
- package/lib/operations/createEndUser.d.ts.map +1 -1
- package/lib/operations/createEndUser.js +71 -5
- package/lib/operations/createEndUser.js.map +1 -1
- package/lib/operations/createEvmAccount.d.ts +15 -24
- package/lib/operations/createEvmAccount.d.ts.map +1 -1
- package/lib/operations/createEvmAccount.js +1 -3
- package/lib/operations/createEvmAccount.js.map +1 -1
- package/lib/operations/createEvmEip7702Delegation.d.ts +11 -17
- package/lib/operations/createEvmEip7702Delegation.d.ts.map +1 -1
- package/lib/operations/createEvmEip7702Delegation.js +0 -2
- package/lib/operations/createEvmEip7702Delegation.js.map +1 -1
- package/lib/operations/createEvmEip7702DelegationWithEndUserAccount.d.ts +14 -23
- package/lib/operations/createEvmEip7702DelegationWithEndUserAccount.d.ts.map +1 -1
- package/lib/operations/createEvmEip7702DelegationWithEndUserAccount.js +0 -2
- package/lib/operations/createEvmEip7702DelegationWithEndUserAccount.js.map +1 -1
- package/lib/operations/createEvmSmartAccount.d.ts +16 -26
- package/lib/operations/createEvmSmartAccount.d.ts.map +1 -1
- package/lib/operations/createEvmSmartAccount.js +1 -3
- package/lib/operations/createEvmSmartAccount.js.map +1 -1
- package/lib/operations/createEvmSwapQuote.d.ts +69 -24
- package/lib/operations/createEvmSwapQuote.d.ts.map +1 -1
- package/lib/operations/createEvmSwapQuote.js +59 -4
- package/lib/operations/createEvmSwapQuote.js.map +1 -1
- package/lib/operations/createFoundationAccount.d.ts +26 -0
- package/lib/operations/createFoundationAccount.d.ts.map +1 -0
- package/lib/operations/createFoundationAccount.js +32 -0
- package/lib/operations/createFoundationAccount.js.map +1 -0
- package/lib/operations/createOnrampOrder.d.ts +51 -93
- package/lib/operations/createOnrampOrder.d.ts.map +1 -1
- package/lib/operations/createOnrampOrder.js +2 -2
- package/lib/operations/createOnrampOrder.js.map +1 -1
- package/lib/operations/createOnrampSession.d.ts +36 -67
- package/lib/operations/createOnrampSession.d.ts.map +1 -1
- package/lib/operations/createOnrampSession.js +0 -2
- package/lib/operations/createOnrampSession.js.map +1 -1
- package/lib/operations/createPolicy.d.ts +17 -28
- package/lib/operations/createPolicy.d.ts.map +1 -1
- package/lib/operations/createPolicy.js +1 -3
- package/lib/operations/createPolicy.js.map +1 -1
- package/lib/operations/createSolanaAccount.d.ts +15 -24
- package/lib/operations/createSolanaAccount.d.ts.map +1 -1
- package/lib/operations/createSolanaAccount.js +1 -3
- package/lib/operations/createSolanaAccount.js.map +1 -1
- package/lib/operations/createSpendPermission.d.ts +40 -72
- package/lib/operations/createSpendPermission.d.ts.map +1 -1
- package/lib/operations/createSpendPermission.js +2 -3
- package/lib/operations/createSpendPermission.js.map +1 -1
- package/lib/operations/createTransfer.d.ts +178 -0
- package/lib/operations/createTransfer.d.ts.map +1 -0
- package/lib/operations/createTransfer.js +244 -0
- package/lib/operations/createTransfer.js.map +1 -0
- package/lib/operations/createWebhookSubscription.d.ts +46 -105
- package/lib/operations/createWebhookSubscription.d.ts.map +1 -1
- package/lib/operations/createWebhookSubscription.js +68 -45
- package/lib/operations/createWebhookSubscription.js.map +1 -1
- package/lib/operations/deletePolicy.d.ts +8 -10
- package/lib/operations/deletePolicy.d.ts.map +1 -1
- package/lib/operations/deletePolicy.js +3 -4
- package/lib/operations/deletePolicy.js.map +1 -1
- package/lib/operations/deleteWebhookSubscription.d.ts +7 -9
- package/lib/operations/deleteWebhookSubscription.d.ts.map +1 -1
- package/lib/operations/deleteWebhookSubscription.js +0 -2
- package/lib/operations/deleteWebhookSubscription.js.map +1 -1
- package/lib/operations/executeFundTransfer.d.ts +103 -0
- package/lib/operations/executeFundTransfer.d.ts.map +1 -0
- package/lib/operations/executeFundTransfer.js +152 -0
- package/lib/operations/executeFundTransfer.js.map +1 -0
- package/lib/operations/exportEvmAccount.d.ts +11 -16
- package/lib/operations/exportEvmAccount.d.ts.map +1 -1
- package/lib/operations/exportEvmAccount.js +1 -3
- package/lib/operations/exportEvmAccount.js.map +1 -1
- package/lib/operations/exportEvmAccountByName.d.ts +11 -16
- package/lib/operations/exportEvmAccountByName.d.ts.map +1 -1
- package/lib/operations/exportEvmAccountByName.js +1 -3
- package/lib/operations/exportEvmAccountByName.js.map +1 -1
- package/lib/operations/exportSolanaAccount.d.ts +11 -16
- package/lib/operations/exportSolanaAccount.d.ts.map +1 -1
- package/lib/operations/exportSolanaAccount.js +1 -3
- package/lib/operations/exportSolanaAccount.js.map +1 -1
- package/lib/operations/exportSolanaAccountByName.d.ts +11 -16
- package/lib/operations/exportSolanaAccountByName.d.ts.map +1 -1
- package/lib/operations/exportSolanaAccountByName.js +1 -3
- package/lib/operations/exportSolanaAccountByName.js.map +1 -1
- package/lib/operations/getBalanceByAsset.d.ts +29 -0
- package/lib/operations/getBalanceByAsset.d.ts.map +1 -0
- package/lib/operations/getBalanceByAsset.js +34 -0
- package/lib/operations/getBalanceByAsset.js.map +1 -0
- package/lib/operations/getDelegationForEndUser.d.ts +10 -15
- package/lib/operations/getDelegationForEndUser.d.ts.map +1 -1
- package/lib/operations/getDelegationForEndUser.js +0 -2
- package/lib/operations/getDelegationForEndUser.js.map +1 -1
- package/lib/operations/getDelegationForEndUserAccount.d.ts +23 -0
- package/lib/operations/getDelegationForEndUserAccount.d.ts.map +1 -0
- package/lib/operations/getDelegationForEndUserAccount.js +33 -0
- package/lib/operations/getDelegationForEndUserAccount.js.map +1 -0
- package/lib/operations/getDepositDestinationById.d.ts +32 -0
- package/lib/operations/getDepositDestinationById.d.ts.map +1 -0
- package/lib/operations/getDepositDestinationById.js +52 -0
- package/lib/operations/getDepositDestinationById.js.map +1 -0
- package/lib/operations/getEndUser.d.ts +64 -68
- package/lib/operations/getEndUser.d.ts.map +1 -1
- package/lib/operations/getEndUser.js +36 -4
- package/lib/operations/getEndUser.js.map +1 -1
- package/lib/operations/getEvmAccount.d.ts +14 -22
- package/lib/operations/getEvmAccount.d.ts.map +1 -1
- package/lib/operations/getEvmAccount.js +1 -3
- package/lib/operations/getEvmAccount.js.map +1 -1
- package/lib/operations/getEvmAccountByName.d.ts +14 -22
- package/lib/operations/getEvmAccountByName.d.ts.map +1 -1
- package/lib/operations/getEvmAccountByName.js +1 -3
- package/lib/operations/getEvmAccountByName.js.map +1 -1
- package/lib/operations/getEvmEip7702DelegationOperationById.d.ts +14 -22
- package/lib/operations/getEvmEip7702DelegationOperationById.d.ts.map +1 -1
- package/lib/operations/getEvmEip7702DelegationOperationById.js +1 -3
- package/lib/operations/getEvmEip7702DelegationOperationById.js.map +1 -1
- package/lib/operations/getEvmSmartAccount.d.ts +15 -24
- package/lib/operations/getEvmSmartAccount.d.ts.map +1 -1
- package/lib/operations/getEvmSmartAccount.js +1 -3
- package/lib/operations/getEvmSmartAccount.js.map +1 -1
- package/lib/operations/getEvmSmartAccountByName.d.ts +15 -24
- package/lib/operations/getEvmSmartAccountByName.d.ts.map +1 -1
- package/lib/operations/getEvmSmartAccountByName.js +1 -3
- package/lib/operations/getEvmSmartAccountByName.js.map +1 -1
- package/lib/operations/getEvmSwapPrice.d.ts +49 -24
- package/lib/operations/getEvmSwapPrice.d.ts.map +1 -1
- package/lib/operations/getEvmSwapPrice.js +39 -4
- package/lib/operations/getEvmSwapPrice.js.map +1 -1
- package/lib/operations/getFoundationAccountById.d.ts +23 -0
- package/lib/operations/getFoundationAccountById.d.ts.map +1 -0
- package/lib/operations/getFoundationAccountById.js +29 -0
- package/lib/operations/getFoundationAccountById.js.map +1 -0
- package/lib/operations/getOnrampOrderById.d.ts +30 -55
- package/lib/operations/getOnrampOrderById.d.ts.map +1 -1
- package/lib/operations/getOnrampOrderById.js +0 -2
- package/lib/operations/getOnrampOrderById.js.map +1 -1
- package/lib/operations/getOnrampUserLimits.d.ts +16 -27
- package/lib/operations/getOnrampUserLimits.d.ts.map +1 -1
- package/lib/operations/getOnrampUserLimits.js +0 -2
- package/lib/operations/getOnrampUserLimits.js.map +1 -1
- package/lib/operations/getPaymentMethod.d.ts +53 -0
- package/lib/operations/getPaymentMethod.d.ts.map +1 -0
- package/lib/operations/getPaymentMethod.js +61 -0
- package/lib/operations/getPaymentMethod.js.map +1 -0
- package/lib/operations/getPolicyById.d.ts +15 -24
- package/lib/operations/getPolicyById.d.ts.map +1 -1
- package/lib/operations/getPolicyById.js +1 -3
- package/lib/operations/getPolicyById.js.map +1 -1
- package/lib/operations/getSQLGrammar.d.ts +6 -5
- package/lib/operations/getSQLGrammar.d.ts.map +1 -1
- package/lib/operations/getSQLGrammar.js +2 -3
- package/lib/operations/getSQLGrammar.js.map +1 -1
- package/lib/operations/getSQLSchema.d.ts +21 -36
- package/lib/operations/getSQLSchema.d.ts.map +1 -1
- package/lib/operations/getSQLSchema.js +2 -4
- package/lib/operations/getSQLSchema.js.map +1 -1
- package/lib/operations/getSolanaAccount.d.ts +14 -22
- package/lib/operations/getSolanaAccount.d.ts.map +1 -1
- package/lib/operations/getSolanaAccount.js +1 -3
- package/lib/operations/getSolanaAccount.js.map +1 -1
- package/lib/operations/getSolanaAccountByName.d.ts +14 -22
- package/lib/operations/getSolanaAccountByName.d.ts.map +1 -1
- package/lib/operations/getSolanaAccountByName.js +1 -3
- package/lib/operations/getSolanaAccountByName.js.map +1 -1
- package/lib/operations/getTransferById.d.ts +99 -0
- package/lib/operations/getTransferById.d.ts.map +1 -0
- package/lib/operations/getTransferById.js +146 -0
- package/lib/operations/getTransferById.js.map +1 -0
- package/lib/operations/getUserOperation.d.ts +31 -54
- package/lib/operations/getUserOperation.d.ts.map +1 -1
- package/lib/operations/getUserOperation.js +2 -3
- package/lib/operations/getUserOperation.js.map +1 -1
- package/lib/operations/getWebhookSubscription.d.ts +25 -46
- package/lib/operations/getWebhookSubscription.d.ts.map +1 -1
- package/lib/operations/getWebhookSubscription.js +30 -7
- package/lib/operations/getWebhookSubscription.js.map +1 -1
- package/lib/operations/importEndUser.d.ts +94 -74
- package/lib/operations/importEndUser.d.ts.map +1 -1
- package/lib/operations/importEndUser.js +71 -5
- package/lib/operations/importEndUser.js.map +1 -1
- package/lib/operations/importEvmAccount.d.ts +16 -26
- package/lib/operations/importEvmAccount.d.ts.map +1 -1
- package/lib/operations/importEvmAccount.js +1 -3
- package/lib/operations/importEvmAccount.js.map +1 -1
- package/lib/operations/importSolanaAccount.d.ts +15 -24
- package/lib/operations/importSolanaAccount.d.ts.map +1 -1
- package/lib/operations/importSolanaAccount.js +1 -3
- package/lib/operations/importSolanaAccount.js.map +1 -1
- package/lib/operations/index.d.ts +40 -0
- package/lib/operations/index.d.ts.map +1 -1
- package/lib/operations/index.js +40 -0
- package/lib/operations/index.js.map +1 -1
- package/lib/operations/initiateOnrampVerification.d.ts +24 -0
- package/lib/operations/initiateOnrampVerification.d.ts.map +1 -0
- package/lib/operations/initiateOnrampVerification.js +30 -0
- package/lib/operations/initiateOnrampVerification.js.map +1 -0
- package/lib/operations/listBalances.d.ts +34 -0
- package/lib/operations/listBalances.d.ts.map +1 -0
- package/lib/operations/listBalances.js +38 -0
- package/lib/operations/listBalances.js.map +1 -0
- package/lib/operations/listDataTokenBalances.d.ts +24 -43
- package/lib/operations/listDataTokenBalances.d.ts.map +1 -1
- package/lib/operations/listDataTokenBalances.js +0 -2
- package/lib/operations/listDataTokenBalances.js.map +1 -1
- package/lib/operations/listDepositDestinations.d.ts +45 -0
- package/lib/operations/listDepositDestinations.d.ts.map +1 -0
- package/lib/operations/listDepositDestinations.js +62 -0
- package/lib/operations/listDepositDestinations.js.map +1 -0
- package/lib/operations/listEndUsers.d.ts +68 -77
- package/lib/operations/listEndUsers.d.ts.map +1 -1
- package/lib/operations/listEndUsers.js +47 -3
- package/lib/operations/listEndUsers.js.map +1 -1
- package/lib/operations/listEvmAccounts.d.ts +17 -29
- package/lib/operations/listEvmAccounts.d.ts.map +1 -1
- package/lib/operations/listEvmAccounts.js +0 -2
- package/lib/operations/listEvmAccounts.js.map +1 -1
- package/lib/operations/listEvmSmartAccounts.d.ts +18 -31
- package/lib/operations/listEvmSmartAccounts.d.ts.map +1 -1
- package/lib/operations/listEvmSmartAccounts.js +0 -2
- package/lib/operations/listEvmSmartAccounts.js.map +1 -1
- package/lib/operations/listEvmTokenBalances.d.ts +24 -43
- package/lib/operations/listEvmTokenBalances.d.ts.map +1 -1
- package/lib/operations/listEvmTokenBalances.js +0 -2
- package/lib/operations/listEvmTokenBalances.js.map +1 -1
- package/lib/operations/listFoundationAccounts.d.ts +30 -0
- package/lib/operations/listFoundationAccounts.d.ts.map +1 -0
- package/lib/operations/listFoundationAccounts.js +36 -0
- package/lib/operations/listFoundationAccounts.js.map +1 -0
- package/lib/operations/listPaymentMethods.d.ts +63 -0
- package/lib/operations/listPaymentMethods.d.ts.map +1 -0
- package/lib/operations/listPaymentMethods.js +73 -0
- package/lib/operations/listPaymentMethods.js.map +1 -0
- package/lib/operations/listPolicies.d.ts +19 -33
- package/lib/operations/listPolicies.d.ts.map +1 -1
- package/lib/operations/listPolicies.js +0 -2
- package/lib/operations/listPolicies.js.map +1 -1
- package/lib/operations/listSolanaAccounts.d.ts +18 -30
- package/lib/operations/listSolanaAccounts.d.ts.map +1 -1
- package/lib/operations/listSolanaAccounts.js +1 -3
- package/lib/operations/listSolanaAccounts.js.map +1 -1
- package/lib/operations/listSolanaTokenBalances.d.ts +23 -41
- package/lib/operations/listSolanaTokenBalances.d.ts.map +1 -1
- package/lib/operations/listSolanaTokenBalances.js +0 -2
- package/lib/operations/listSolanaTokenBalances.js.map +1 -1
- package/lib/operations/listSpendPermissions.d.ts +29 -53
- package/lib/operations/listSpendPermissions.d.ts.map +1 -1
- package/lib/operations/listSpendPermissions.js +0 -2
- package/lib/operations/listSpendPermissions.js.map +1 -1
- package/lib/operations/listTokensForAccount.d.ts +12 -19
- package/lib/operations/listTokensForAccount.d.ts.map +1 -1
- package/lib/operations/listTokensForAccount.js +0 -2
- package/lib/operations/listTokensForAccount.js.map +1 -1
- package/lib/operations/listTransfers.d.ts +153 -0
- package/lib/operations/listTransfers.d.ts.map +1 -0
- package/lib/operations/listTransfers.js +205 -0
- package/lib/operations/listTransfers.js.map +1 -0
- package/lib/operations/listWebhookSubscriptionEvents.d.ts +26 -47
- package/lib/operations/listWebhookSubscriptionEvents.d.ts.map +1 -1
- package/lib/operations/listWebhookSubscriptionEvents.js +0 -2
- package/lib/operations/listWebhookSubscriptionEvents.js.map +1 -1
- package/lib/operations/listWebhookSubscriptions.d.ts +28 -53
- package/lib/operations/listWebhookSubscriptions.d.ts.map +1 -1
- package/lib/operations/listWebhookSubscriptions.js +29 -6
- package/lib/operations/listWebhookSubscriptions.js.map +1 -1
- package/lib/operations/listX402DiscoveryMerchant.d.ts +69 -0
- package/lib/operations/listX402DiscoveryMerchant.d.ts.map +1 -0
- package/lib/operations/listX402DiscoveryMerchant.js +92 -0
- package/lib/operations/listX402DiscoveryMerchant.js.map +1 -0
- package/lib/operations/listX402DiscoveryResources.d.ts +67 -0
- package/lib/operations/listX402DiscoveryResources.d.ts.map +1 -0
- package/lib/operations/listX402DiscoveryResources.js +90 -0
- package/lib/operations/listX402DiscoveryResources.js.map +1 -0
- package/lib/operations/lookupEndUser.d.ts +93 -0
- package/lib/operations/lookupEndUser.d.ts.map +1 -0
- package/lib/operations/lookupEndUser.js +116 -0
- package/lib/operations/lookupEndUser.js.map +1 -0
- package/lib/operations/postX402DiscoveryMcp.d.ts +26 -0
- package/lib/operations/postX402DiscoveryMcp.d.ts.map +1 -0
- package/lib/operations/postX402DiscoveryMcp.js +32 -0
- package/lib/operations/postX402DiscoveryMcp.js.map +1 -0
- package/lib/operations/prepareAndSendUserOperation.d.ts +39 -68
- package/lib/operations/prepareAndSendUserOperation.d.ts.map +1 -1
- package/lib/operations/prepareAndSendUserOperation.js +3 -3
- package/lib/operations/prepareAndSendUserOperation.js.map +1 -1
- package/lib/operations/prepareUserOperation.d.ts +40 -70
- package/lib/operations/prepareUserOperation.d.ts.map +1 -1
- package/lib/operations/prepareUserOperation.js +3 -3
- package/lib/operations/prepareUserOperation.js.map +1 -1
- package/lib/operations/requestEvmFaucet.d.ts +11 -17
- package/lib/operations/requestEvmFaucet.d.ts.map +1 -1
- package/lib/operations/requestEvmFaucet.js +0 -2
- package/lib/operations/requestEvmFaucet.js.map +1 -1
- package/lib/operations/requestLimitsUpgrade.d.ts +29 -0
- package/lib/operations/requestLimitsUpgrade.d.ts.map +1 -0
- package/lib/operations/requestLimitsUpgrade.js +35 -0
- package/lib/operations/requestLimitsUpgrade.js.map +1 -0
- package/lib/operations/requestSolanaFaucet.d.ts +10 -15
- package/lib/operations/requestSolanaFaucet.d.ts.map +1 -1
- package/lib/operations/requestSolanaFaucet.js +0 -2
- package/lib/operations/requestSolanaFaucet.js.map +1 -1
- package/lib/operations/revokeDelegationForEndUser.d.ts +10 -11
- package/lib/operations/revokeDelegationForEndUser.d.ts.map +1 -1
- package/lib/operations/revokeDelegationForEndUser.js +2 -2
- package/lib/operations/revokeDelegationForEndUser.js.map +1 -1
- package/lib/operations/revokeDelegationForEndUserAccount.d.ts +34 -0
- package/lib/operations/revokeDelegationForEndUserAccount.d.ts.map +1 -0
- package/lib/operations/revokeDelegationForEndUserAccount.js +44 -0
- package/lib/operations/revokeDelegationForEndUserAccount.js.map +1 -0
- package/lib/operations/revokeSpendPermission.d.ts +33 -58
- package/lib/operations/revokeSpendPermission.d.ts.map +1 -1
- package/lib/operations/revokeSpendPermission.js +2 -3
- package/lib/operations/revokeSpendPermission.js.map +1 -1
- package/lib/operations/runSQLQuery.d.ts +30 -53
- package/lib/operations/runSQLQuery.d.ts.map +1 -1
- package/lib/operations/runSQLQuery.js +6 -10
- package/lib/operations/runSQLQuery.js.map +1 -1
- package/lib/operations/searchX402Resources.d.ts +83 -0
- package/lib/operations/searchX402Resources.d.ts.map +1 -0
- package/lib/operations/searchX402Resources.js +106 -0
- package/lib/operations/searchX402Resources.js.map +1 -0
- package/lib/operations/sendEvmAssetWithEndUserAccount.d.ts +20 -33
- package/lib/operations/sendEvmAssetWithEndUserAccount.d.ts.map +1 -1
- package/lib/operations/sendEvmAssetWithEndUserAccount.js +1 -2
- package/lib/operations/sendEvmAssetWithEndUserAccount.js.map +1 -1
- package/lib/operations/sendEvmTransaction.d.ts +12 -18
- package/lib/operations/sendEvmTransaction.d.ts.map +1 -1
- package/lib/operations/sendEvmTransaction.js +4 -3
- package/lib/operations/sendEvmTransaction.js.map +1 -1
- package/lib/operations/sendEvmTransactionWithEndUserAccount.d.ts +15 -24
- package/lib/operations/sendEvmTransactionWithEndUserAccount.d.ts.map +1 -1
- package/lib/operations/sendEvmTransactionWithEndUserAccount.js +1 -3
- package/lib/operations/sendEvmTransactionWithEndUserAccount.js.map +1 -1
- package/lib/operations/sendSolanaAssetWithEndUserAccount.d.ts +18 -31
- package/lib/operations/sendSolanaAssetWithEndUserAccount.d.ts.map +1 -1
- package/lib/operations/sendSolanaAssetWithEndUserAccount.js +0 -2
- package/lib/operations/sendSolanaAssetWithEndUserAccount.js.map +1 -1
- package/lib/operations/sendSolanaTransaction.d.ts +12 -18
- package/lib/operations/sendSolanaTransaction.d.ts.map +1 -1
- package/lib/operations/sendSolanaTransaction.js +1 -3
- package/lib/operations/sendSolanaTransaction.js.map +1 -1
- package/lib/operations/sendSolanaTransactionWithEndUserAccount.d.ts +16 -26
- package/lib/operations/sendSolanaTransactionWithEndUserAccount.d.ts.map +1 -1
- package/lib/operations/sendSolanaTransactionWithEndUserAccount.js +1 -3
- package/lib/operations/sendSolanaTransactionWithEndUserAccount.js.map +1 -1
- package/lib/operations/sendUserOperation.d.ts +32 -56
- package/lib/operations/sendUserOperation.d.ts.map +1 -1
- package/lib/operations/sendUserOperation.js +2 -3
- package/lib/operations/sendUserOperation.js.map +1 -1
- package/lib/operations/sendUserOperationWithEndUserAccount.d.ts +44 -78
- package/lib/operations/sendUserOperationWithEndUserAccount.d.ts.map +1 -1
- package/lib/operations/sendUserOperationWithEndUserAccount.js +3 -3
- package/lib/operations/sendUserOperationWithEndUserAccount.js.map +1 -1
- package/lib/operations/settleX402Payment.d.ts +239 -30
- package/lib/operations/settleX402Payment.d.ts.map +1 -1
- package/lib/operations/settleX402Payment.js +280 -5
- package/lib/operations/settleX402Payment.js.map +1 -1
- package/lib/operations/signEvmHash.d.ts +11 -16
- package/lib/operations/signEvmHash.d.ts.map +1 -1
- package/lib/operations/signEvmHash.js +1 -3
- package/lib/operations/signEvmHash.js.map +1 -1
- package/lib/operations/signEvmMessage.d.ts +11 -16
- package/lib/operations/signEvmMessage.d.ts.map +1 -1
- package/lib/operations/signEvmMessage.js +1 -3
- package/lib/operations/signEvmMessage.js.map +1 -1
- package/lib/operations/signEvmMessageWithEndUserAccount.d.ts +14 -22
- package/lib/operations/signEvmMessageWithEndUserAccount.d.ts.map +1 -1
- package/lib/operations/signEvmMessageWithEndUserAccount.js +1 -3
- package/lib/operations/signEvmMessageWithEndUserAccount.js.map +1 -1
- package/lib/operations/signEvmTransaction.d.ts +11 -16
- package/lib/operations/signEvmTransaction.d.ts.map +1 -1
- package/lib/operations/signEvmTransaction.js +1 -3
- package/lib/operations/signEvmTransaction.js.map +1 -1
- package/lib/operations/signEvmTransactionWithEndUserAccount.d.ts +14 -22
- package/lib/operations/signEvmTransactionWithEndUserAccount.d.ts.map +1 -1
- package/lib/operations/signEvmTransactionWithEndUserAccount.js +1 -3
- package/lib/operations/signEvmTransactionWithEndUserAccount.js.map +1 -1
- package/lib/operations/signEvmTypedData.d.ts +19 -33
- package/lib/operations/signEvmTypedData.d.ts.map +1 -1
- package/lib/operations/signEvmTypedData.js +0 -2
- package/lib/operations/signEvmTypedData.js.map +1 -1
- package/lib/operations/signEvmTypedDataWithEndUserAccount.d.ts +25 -44
- package/lib/operations/signEvmTypedDataWithEndUserAccount.d.ts.map +1 -1
- package/lib/operations/signEvmTypedDataWithEndUserAccount.js +1 -3
- package/lib/operations/signEvmTypedDataWithEndUserAccount.js.map +1 -1
- package/lib/operations/signSolanaMessage.d.ts +11 -16
- package/lib/operations/signSolanaMessage.d.ts.map +1 -1
- package/lib/operations/signSolanaMessage.js +1 -3
- package/lib/operations/signSolanaMessage.js.map +1 -1
- package/lib/operations/signSolanaMessageWithEndUserAccount.d.ts +14 -22
- package/lib/operations/signSolanaMessageWithEndUserAccount.d.ts.map +1 -1
- package/lib/operations/signSolanaMessageWithEndUserAccount.js +1 -3
- package/lib/operations/signSolanaMessageWithEndUserAccount.js.map +1 -1
- package/lib/operations/signSolanaTransaction.d.ts +11 -16
- package/lib/operations/signSolanaTransaction.d.ts.map +1 -1
- package/lib/operations/signSolanaTransaction.js +1 -3
- package/lib/operations/signSolanaTransaction.js.map +1 -1
- package/lib/operations/signSolanaTransactionWithEndUserAccount.d.ts +14 -22
- package/lib/operations/signSolanaTransactionWithEndUserAccount.d.ts.map +1 -1
- package/lib/operations/signSolanaTransactionWithEndUserAccount.js +1 -3
- package/lib/operations/signSolanaTransactionWithEndUserAccount.js.map +1 -1
- package/lib/operations/submitDepositTravelRule.d.ts +52 -0
- package/lib/operations/submitDepositTravelRule.d.ts.map +1 -0
- package/lib/operations/submitDepositTravelRule.js +58 -0
- package/lib/operations/submitDepositTravelRule.js.map +1 -0
- package/lib/operations/submitOnrampVerification.d.ts +26 -0
- package/lib/operations/submitOnrampVerification.d.ts.map +1 -0
- package/lib/operations/submitOnrampVerification.js +35 -0
- package/lib/operations/submitOnrampVerification.js.map +1 -0
- package/lib/operations/supportedX402PaymentKinds.d.ts +15 -27
- package/lib/operations/supportedX402PaymentKinds.d.ts.map +1 -1
- package/lib/operations/supportedX402PaymentKinds.js +4 -4
- package/lib/operations/supportedX402PaymentKinds.js.map +1 -1
- package/lib/operations/updateEvmAccount.d.ts +16 -26
- package/lib/operations/updateEvmAccount.d.ts.map +1 -1
- package/lib/operations/updateEvmAccount.js +1 -3
- package/lib/operations/updateEvmAccount.js.map +1 -1
- package/lib/operations/updateEvmSmartAccount.d.ts +16 -26
- package/lib/operations/updateEvmSmartAccount.d.ts.map +1 -1
- package/lib/operations/updateEvmSmartAccount.js +1 -3
- package/lib/operations/updateEvmSmartAccount.js.map +1 -1
- package/lib/operations/updatePolicy.d.ts +17 -28
- package/lib/operations/updatePolicy.d.ts.map +1 -1
- package/lib/operations/updatePolicy.js +1 -3
- package/lib/operations/updatePolicy.js.map +1 -1
- package/lib/operations/updateSolanaAccount.d.ts +16 -26
- package/lib/operations/updateSolanaAccount.d.ts.map +1 -1
- package/lib/operations/updateSolanaAccount.js +1 -3
- package/lib/operations/updateSolanaAccount.js.map +1 -1
- package/lib/operations/updateWebhookSubscription.d.ts +33 -69
- package/lib/operations/updateWebhookSubscription.d.ts.map +1 -1
- package/lib/operations/updateWebhookSubscription.js +54 -7
- package/lib/operations/updateWebhookSubscription.js.map +1 -1
- package/lib/operations/validateEndUserAccessToken.d.ts +64 -67
- package/lib/operations/validateEndUserAccessToken.d.ts.map +1 -1
- package/lib/operations/validateEndUserAccessToken.js +36 -3
- package/lib/operations/validateEndUserAccessToken.js.map +1 -1
- package/lib/operations/validateX402Resource.d.ts +64 -0
- package/lib/operations/validateX402Resource.d.ts.map +1 -0
- package/lib/operations/validateX402Resource.js +92 -0
- package/lib/operations/validateX402Resource.js.map +1 -0
- package/lib/operations/verifyX402Payment.d.ts +236 -24
- package/lib/operations/verifyX402Payment.d.ts.map +1 -1
- package/lib/operations/verifyX402Payment.js +266 -5
- package/lib/operations/verifyX402Payment.js.map +1 -1
- package/package.json +2 -2
- package/src/operations/addEndUserEvmAccount.ts +11 -5
- package/src/operations/addEndUserEvmSmartAccount.ts +14 -7
- package/src/operations/addEndUserSolanaAccount.ts +12 -8
- package/src/operations/createDelegationForEndUserAccount.ts +60 -0
- package/src/operations/createDepositDestination.ts +85 -0
- package/src/operations/createEndUser.ts +150 -7
- package/src/operations/createEvmAccount.ts +16 -5
- package/src/operations/createEvmEip7702Delegation.ts +17 -6
- package/src/operations/createEvmEip7702DelegationWithEndUserAccount.ts +20 -6
- package/src/operations/createEvmSmartAccount.ts +17 -6
- package/src/operations/createEvmSwapQuote.ts +128 -5
- package/src/operations/createFoundationAccount.ts +51 -0
- package/src/operations/createOnrampOrder.ts +59 -4
- package/src/operations/createOnrampSession.ts +41 -4
- package/src/operations/createPolicy.ts +18 -5
- package/src/operations/createSolanaAccount.ts +16 -5
- package/src/operations/createSpendPermission.ts +61 -6
- package/src/operations/createTransfer.ts +461 -0
- package/src/operations/createWebhookSubscription.ts +144 -49
- package/src/operations/deletePolicy.ts +8 -5
- package/src/operations/deleteWebhookSubscription.ts +6 -6
- package/src/operations/executeFundTransfer.ts +282 -0
- package/src/operations/exportEvmAccount.ts +12 -5
- package/src/operations/exportEvmAccountByName.ts +10 -7
- package/src/operations/exportSolanaAccount.ts +10 -5
- package/src/operations/exportSolanaAccountByName.ts +10 -7
- package/src/operations/getBalanceByAsset.ts +58 -0
- package/src/operations/getDelegationForEndUser.ts +9 -6
- package/src/operations/getDelegationForEndUserAccount.ts +47 -0
- package/src/operations/getDepositDestinationById.ts +89 -0
- package/src/operations/getEndUser.ts +86 -6
- package/src/operations/getEvmAccount.ts +15 -5
- package/src/operations/getEvmAccountByName.ts +15 -5
- package/src/operations/getEvmEip7702DelegationOperationById.ts +20 -7
- package/src/operations/getEvmSmartAccount.ts +16 -5
- package/src/operations/getEvmSmartAccountByName.ts +14 -7
- package/src/operations/getEvmSwapPrice.ts +86 -5
- package/src/operations/getFoundationAccountById.ts +48 -0
- package/src/operations/getOnrampOrderById.ts +36 -4
- package/src/operations/getOnrampUserLimits.ts +17 -4
- package/src/operations/getPaymentMethod.ts +106 -0
- package/src/operations/getPolicyById.ts +14 -5
- package/src/operations/getSQLGrammar.ts +7 -4
- package/src/operations/getSQLSchema.ts +25 -6
- package/src/operations/getSolanaAccount.ts +15 -5
- package/src/operations/getSolanaAccountByName.ts +13 -7
- package/src/operations/getTransferById.ts +274 -0
- package/src/operations/getUserOperation.ts +44 -5
- package/src/operations/getWebhookSubscription.ts +73 -11
- package/src/operations/importEndUser.ts +147 -7
- package/src/operations/importEvmAccount.ts +17 -5
- package/src/operations/importSolanaAccount.ts +16 -5
- package/src/operations/index.ts +40 -0
- package/src/operations/initiateOnrampVerification.ts +46 -0
- package/src/operations/listBalances.ts +66 -0
- package/src/operations/listDataTokenBalances.ts +20 -5
- package/src/operations/listDepositDestinations.ts +109 -0
- package/src/operations/listEndUsers.ts +102 -5
- package/src/operations/listEvmAccounts.ts +18 -4
- package/src/operations/listEvmSmartAccounts.ts +19 -4
- package/src/operations/listEvmTokenBalances.ts +20 -4
- package/src/operations/listFoundationAccounts.ts +62 -0
- package/src/operations/listPaymentMethods.ts +130 -0
- package/src/operations/listPolicies.ts +20 -4
- package/src/operations/listSolanaAccounts.ts +19 -5
- package/src/operations/listSolanaTokenBalances.ts +15 -6
- package/src/operations/listSpendPermissions.ts +36 -4
- package/src/operations/listTokensForAccount.ts +11 -4
- package/src/operations/listTransfers.ts +355 -0
- package/src/operations/listWebhookSubscriptionEvents.ts +25 -6
- package/src/operations/listWebhookSubscriptions.ts +78 -10
- package/src/operations/listX402DiscoveryMerchant.ts +174 -0
- package/src/operations/listX402DiscoveryResources.ts +171 -0
- package/src/operations/lookupEndUser.ts +188 -0
- package/src/operations/postX402DiscoveryMcp.ts +56 -0
- package/src/operations/prepareAndSendUserOperation.ts +65 -7
- package/src/operations/prepareUserOperation.ts +66 -5
- package/src/operations/requestEvmFaucet.ts +12 -4
- package/src/operations/requestLimitsUpgrade.ts +56 -0
- package/src/operations/requestSolanaFaucet.ts +11 -4
- package/src/operations/revokeDelegationForEndUser.ts +10 -6
- package/src/operations/revokeDelegationForEndUserAccount.ts +57 -0
- package/src/operations/revokeSpendPermission.ts +54 -6
- package/src/operations/runSQLQuery.ts +49 -12
- package/src/operations/searchX402Resources.ts +194 -0
- package/src/operations/sendEvmAssetWithEndUserAccount.ts +33 -6
- package/src/operations/sendEvmTransaction.ts +25 -5
- package/src/operations/sendEvmTransactionWithEndUserAccount.ts +25 -7
- package/src/operations/sendSolanaAssetWithEndUserAccount.ts +17 -6
- package/src/operations/sendSolanaTransaction.ts +11 -6
- package/src/operations/sendSolanaTransactionWithEndUserAccount.ts +15 -7
- package/src/operations/sendUserOperation.ts +45 -5
- package/src/operations/sendUserOperationWithEndUserAccount.ts +70 -7
- package/src/operations/settleX402Payment.ts +742 -7
- package/src/operations/signEvmHash.ts +12 -5
- package/src/operations/signEvmMessage.ts +10 -5
- package/src/operations/signEvmMessageWithEndUserAccount.ts +13 -7
- package/src/operations/signEvmTransaction.ts +10 -5
- package/src/operations/signEvmTransactionWithEndUserAccount.ts +13 -7
- package/src/operations/signEvmTypedData.ts +18 -4
- package/src/operations/signEvmTypedDataWithEndUserAccount.ts +24 -7
- package/src/operations/signSolanaMessage.ts +10 -5
- package/src/operations/signSolanaMessageWithEndUserAccount.ts +13 -7
- package/src/operations/signSolanaTransaction.ts +10 -6
- package/src/operations/signSolanaTransactionWithEndUserAccount.ts +13 -7
- package/src/operations/submitDepositTravelRule.ts +103 -0
- package/src/operations/submitOnrampVerification.ts +51 -0
- package/src/operations/supportedX402PaymentKinds.ts +29 -8
- package/src/operations/updateEvmAccount.ts +17 -5
- package/src/operations/updateEvmSmartAccount.ts +17 -6
- package/src/operations/updatePolicy.ts +16 -5
- package/src/operations/updateSolanaAccount.ts +17 -5
- package/src/operations/updateWebhookSubscription.ts +129 -11
- package/src/operations/validateEndUserAccessToken.ts +84 -7
- package/src/operations/validateX402Resource.ts +172 -0
- package/src/operations/verifyX402Payment.ts +706 -7
|
@@ -0,0 +1,461 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client.ts";
|
|
3
|
+
import * as T from "../traits.ts";
|
|
4
|
+
|
|
5
|
+
// Input Schema
|
|
6
|
+
export interface CreateTransferInput {
|
|
7
|
+
source:
|
|
8
|
+
| { accountId: string; asset: string }
|
|
9
|
+
| { paymentMethodId: string; asset: string };
|
|
10
|
+
target:
|
|
11
|
+
| { accountId: string; asset: string }
|
|
12
|
+
| { paymentMethodId: string; asset: string }
|
|
13
|
+
| {
|
|
14
|
+
address: string;
|
|
15
|
+
network:
|
|
16
|
+
| "base"
|
|
17
|
+
| "ethereum"
|
|
18
|
+
| "solana"
|
|
19
|
+
| "aptos"
|
|
20
|
+
| "arbitrum"
|
|
21
|
+
| "arbitrum-sepolia"
|
|
22
|
+
| "optimism"
|
|
23
|
+
| "polygon"
|
|
24
|
+
| "world"
|
|
25
|
+
| "world-sepolia";
|
|
26
|
+
destinationTag?: string;
|
|
27
|
+
asset: string;
|
|
28
|
+
}
|
|
29
|
+
| { email: string; asset: string };
|
|
30
|
+
amount: string;
|
|
31
|
+
asset: string;
|
|
32
|
+
amountType?: "target" | "source";
|
|
33
|
+
validateOnly?: boolean;
|
|
34
|
+
execute: boolean;
|
|
35
|
+
metadata?: Record<string, string>;
|
|
36
|
+
travelRule?: {
|
|
37
|
+
isSelf?: boolean;
|
|
38
|
+
isIntermediary?: boolean;
|
|
39
|
+
originator?: {
|
|
40
|
+
financialInstitution?: string;
|
|
41
|
+
name?: string;
|
|
42
|
+
address?: {
|
|
43
|
+
line1?: string;
|
|
44
|
+
line2?: string;
|
|
45
|
+
city?: string;
|
|
46
|
+
state?: string;
|
|
47
|
+
postCode?: string;
|
|
48
|
+
countryCode?: string;
|
|
49
|
+
};
|
|
50
|
+
virtualAssetServiceProvider?: {
|
|
51
|
+
name?: string;
|
|
52
|
+
address?: {
|
|
53
|
+
line1?: string;
|
|
54
|
+
line2?: string;
|
|
55
|
+
city?: string;
|
|
56
|
+
state?: string;
|
|
57
|
+
postCode?: string;
|
|
58
|
+
countryCode?: string;
|
|
59
|
+
};
|
|
60
|
+
identifier?: string;
|
|
61
|
+
};
|
|
62
|
+
personalId?: string;
|
|
63
|
+
dateOfBirth?: { day?: string; month?: string; year?: string };
|
|
64
|
+
};
|
|
65
|
+
beneficiary?: {
|
|
66
|
+
financialInstitution?: string;
|
|
67
|
+
name?: string;
|
|
68
|
+
address?: {
|
|
69
|
+
line1?: string;
|
|
70
|
+
line2?: string;
|
|
71
|
+
city?: string;
|
|
72
|
+
state?: string;
|
|
73
|
+
postCode?: string;
|
|
74
|
+
countryCode?: string;
|
|
75
|
+
};
|
|
76
|
+
walletType?: "custodial" | "self_custody";
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
export const CreateTransferInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
81
|
+
source: Schema.Union([
|
|
82
|
+
Schema.Struct({
|
|
83
|
+
accountId: Schema.String,
|
|
84
|
+
asset: Schema.String,
|
|
85
|
+
}),
|
|
86
|
+
Schema.Struct({
|
|
87
|
+
paymentMethodId: Schema.String,
|
|
88
|
+
asset: Schema.String,
|
|
89
|
+
}),
|
|
90
|
+
]),
|
|
91
|
+
target: Schema.Union([
|
|
92
|
+
Schema.Struct({
|
|
93
|
+
accountId: Schema.String,
|
|
94
|
+
asset: Schema.String,
|
|
95
|
+
}),
|
|
96
|
+
Schema.Struct({
|
|
97
|
+
paymentMethodId: Schema.String,
|
|
98
|
+
asset: Schema.String,
|
|
99
|
+
}),
|
|
100
|
+
Schema.Struct({
|
|
101
|
+
address: Schema.String,
|
|
102
|
+
network: Schema.Literals([
|
|
103
|
+
"base",
|
|
104
|
+
"ethereum",
|
|
105
|
+
"solana",
|
|
106
|
+
"aptos",
|
|
107
|
+
"arbitrum",
|
|
108
|
+
"arbitrum-sepolia",
|
|
109
|
+
"optimism",
|
|
110
|
+
"polygon",
|
|
111
|
+
"world",
|
|
112
|
+
"world-sepolia",
|
|
113
|
+
]),
|
|
114
|
+
destinationTag: Schema.optional(Schema.String),
|
|
115
|
+
asset: Schema.String,
|
|
116
|
+
}),
|
|
117
|
+
Schema.Struct({
|
|
118
|
+
email: Schema.String,
|
|
119
|
+
asset: Schema.String,
|
|
120
|
+
}),
|
|
121
|
+
]),
|
|
122
|
+
amount: Schema.String,
|
|
123
|
+
asset: Schema.String,
|
|
124
|
+
amountType: Schema.optional(Schema.Literals(["target", "source"])),
|
|
125
|
+
validateOnly: Schema.optional(Schema.Boolean),
|
|
126
|
+
execute: Schema.Boolean,
|
|
127
|
+
metadata: Schema.optional(Schema.Record(Schema.String, Schema.String)),
|
|
128
|
+
travelRule: Schema.optional(
|
|
129
|
+
Schema.Struct({
|
|
130
|
+
isSelf: Schema.optional(Schema.Boolean),
|
|
131
|
+
isIntermediary: Schema.optional(Schema.Boolean),
|
|
132
|
+
originator: Schema.optional(
|
|
133
|
+
Schema.Struct({
|
|
134
|
+
financialInstitution: Schema.optional(Schema.String),
|
|
135
|
+
name: Schema.optional(Schema.String),
|
|
136
|
+
address: Schema.optional(
|
|
137
|
+
Schema.Struct({
|
|
138
|
+
line1: Schema.optional(Schema.String),
|
|
139
|
+
line2: Schema.optional(Schema.String),
|
|
140
|
+
city: Schema.optional(Schema.String),
|
|
141
|
+
state: Schema.optional(Schema.String),
|
|
142
|
+
postCode: Schema.optional(Schema.String),
|
|
143
|
+
countryCode: Schema.optional(Schema.String),
|
|
144
|
+
}),
|
|
145
|
+
),
|
|
146
|
+
virtualAssetServiceProvider: Schema.optional(
|
|
147
|
+
Schema.Struct({
|
|
148
|
+
name: Schema.optional(Schema.String),
|
|
149
|
+
address: Schema.optional(
|
|
150
|
+
Schema.Struct({
|
|
151
|
+
line1: Schema.optional(Schema.String),
|
|
152
|
+
line2: Schema.optional(Schema.String),
|
|
153
|
+
city: Schema.optional(Schema.String),
|
|
154
|
+
state: Schema.optional(Schema.String),
|
|
155
|
+
postCode: Schema.optional(Schema.String),
|
|
156
|
+
countryCode: Schema.optional(Schema.String),
|
|
157
|
+
}),
|
|
158
|
+
),
|
|
159
|
+
identifier: Schema.optional(Schema.String),
|
|
160
|
+
}),
|
|
161
|
+
),
|
|
162
|
+
personalId: Schema.optional(Schema.String),
|
|
163
|
+
dateOfBirth: Schema.optional(
|
|
164
|
+
Schema.Struct({
|
|
165
|
+
day: Schema.optional(Schema.String),
|
|
166
|
+
month: Schema.optional(Schema.String),
|
|
167
|
+
year: Schema.optional(Schema.String),
|
|
168
|
+
}),
|
|
169
|
+
),
|
|
170
|
+
}),
|
|
171
|
+
),
|
|
172
|
+
beneficiary: Schema.optional(
|
|
173
|
+
Schema.Struct({
|
|
174
|
+
financialInstitution: Schema.optional(Schema.String),
|
|
175
|
+
name: Schema.optional(Schema.String),
|
|
176
|
+
address: Schema.optional(
|
|
177
|
+
Schema.Struct({
|
|
178
|
+
line1: Schema.optional(Schema.String),
|
|
179
|
+
line2: Schema.optional(Schema.String),
|
|
180
|
+
city: Schema.optional(Schema.String),
|
|
181
|
+
state: Schema.optional(Schema.String),
|
|
182
|
+
postCode: Schema.optional(Schema.String),
|
|
183
|
+
countryCode: Schema.optional(Schema.String),
|
|
184
|
+
}),
|
|
185
|
+
),
|
|
186
|
+
walletType: Schema.optional(
|
|
187
|
+
Schema.Literals(["custodial", "self_custody"]),
|
|
188
|
+
),
|
|
189
|
+
}),
|
|
190
|
+
),
|
|
191
|
+
}),
|
|
192
|
+
),
|
|
193
|
+
}).pipe(
|
|
194
|
+
T.Http({ method: "POST", path: "/v2/transfers" }),
|
|
195
|
+
) as unknown as Schema.Codec<CreateTransferInput>;
|
|
196
|
+
|
|
197
|
+
// Output Schema
|
|
198
|
+
export interface CreateTransferOutput {
|
|
199
|
+
transferId?: string;
|
|
200
|
+
status?: "quoted" | "processing" | "completed" | "failed";
|
|
201
|
+
source:
|
|
202
|
+
| { accountId: string; asset: string }
|
|
203
|
+
| { paymentMethodId: string; asset: string }
|
|
204
|
+
| {
|
|
205
|
+
address: string;
|
|
206
|
+
network:
|
|
207
|
+
| "base"
|
|
208
|
+
| "ethereum"
|
|
209
|
+
| "solana"
|
|
210
|
+
| "aptos"
|
|
211
|
+
| "arbitrum"
|
|
212
|
+
| "arbitrum-sepolia"
|
|
213
|
+
| "optimism"
|
|
214
|
+
| "polygon"
|
|
215
|
+
| "world"
|
|
216
|
+
| "world-sepolia";
|
|
217
|
+
destinationTag?: string;
|
|
218
|
+
asset: string;
|
|
219
|
+
}
|
|
220
|
+
| { bankName: string; accountLast4: string; currency: string };
|
|
221
|
+
target:
|
|
222
|
+
| { accountId: string; asset: string }
|
|
223
|
+
| { paymentMethodId: string; asset: string }
|
|
224
|
+
| {
|
|
225
|
+
address: string;
|
|
226
|
+
network:
|
|
227
|
+
| "base"
|
|
228
|
+
| "ethereum"
|
|
229
|
+
| "solana"
|
|
230
|
+
| "aptos"
|
|
231
|
+
| "arbitrum"
|
|
232
|
+
| "arbitrum-sepolia"
|
|
233
|
+
| "optimism"
|
|
234
|
+
| "polygon"
|
|
235
|
+
| "world"
|
|
236
|
+
| "world-sepolia";
|
|
237
|
+
destinationTag?: string;
|
|
238
|
+
asset: string;
|
|
239
|
+
}
|
|
240
|
+
| { email: string; asset: string };
|
|
241
|
+
sourceAmount?: string;
|
|
242
|
+
sourceAsset?: string;
|
|
243
|
+
targetAmount?: string;
|
|
244
|
+
targetAsset?: string;
|
|
245
|
+
exchangeRate?: { sourceAsset: string; targetAsset: string; rate: string };
|
|
246
|
+
fees?: {
|
|
247
|
+
type: "bank" | "conversion" | "network" | "other";
|
|
248
|
+
amount: string;
|
|
249
|
+
asset: string;
|
|
250
|
+
}[];
|
|
251
|
+
estimate?: {
|
|
252
|
+
exchangeRate?: { sourceAsset: string; targetAsset: string; rate: string };
|
|
253
|
+
targetAmount?: string;
|
|
254
|
+
targetAsset?: string;
|
|
255
|
+
fees?: {
|
|
256
|
+
type: "bank" | "conversion" | "network" | "other";
|
|
257
|
+
amount: string;
|
|
258
|
+
asset: string;
|
|
259
|
+
}[];
|
|
260
|
+
estimatedAt: string;
|
|
261
|
+
};
|
|
262
|
+
completedAt?: string;
|
|
263
|
+
failureReason?: string;
|
|
264
|
+
expiresAt?: string;
|
|
265
|
+
executedAt?: string;
|
|
266
|
+
createdAt?: string;
|
|
267
|
+
updatedAt?: string;
|
|
268
|
+
metadata?: Record<string, string>;
|
|
269
|
+
details?: {
|
|
270
|
+
depositDestination?: { id: string };
|
|
271
|
+
onchainTransactions?: {
|
|
272
|
+
transactionHash: string;
|
|
273
|
+
network:
|
|
274
|
+
| "base"
|
|
275
|
+
| "ethereum"
|
|
276
|
+
| "solana"
|
|
277
|
+
| "aptos"
|
|
278
|
+
| "arbitrum"
|
|
279
|
+
| "arbitrum-sepolia"
|
|
280
|
+
| "optimism"
|
|
281
|
+
| "polygon"
|
|
282
|
+
| "world"
|
|
283
|
+
| "world-sepolia";
|
|
284
|
+
}[];
|
|
285
|
+
travelRule?: {
|
|
286
|
+
status?: "incomplete" | "completed";
|
|
287
|
+
statusMessage?: string;
|
|
288
|
+
};
|
|
289
|
+
};
|
|
290
|
+
}
|
|
291
|
+
export const CreateTransferOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
292
|
+
transferId: Schema.optional(Schema.String),
|
|
293
|
+
status: Schema.optional(
|
|
294
|
+
Schema.Literals(["quoted", "processing", "completed", "failed"]),
|
|
295
|
+
),
|
|
296
|
+
source: Schema.Union([
|
|
297
|
+
Schema.Struct({
|
|
298
|
+
accountId: Schema.String,
|
|
299
|
+
asset: Schema.String,
|
|
300
|
+
}),
|
|
301
|
+
Schema.Struct({
|
|
302
|
+
paymentMethodId: Schema.String,
|
|
303
|
+
asset: Schema.String,
|
|
304
|
+
}),
|
|
305
|
+
Schema.Struct({
|
|
306
|
+
address: Schema.String,
|
|
307
|
+
network: Schema.Literals([
|
|
308
|
+
"base",
|
|
309
|
+
"ethereum",
|
|
310
|
+
"solana",
|
|
311
|
+
"aptos",
|
|
312
|
+
"arbitrum",
|
|
313
|
+
"arbitrum-sepolia",
|
|
314
|
+
"optimism",
|
|
315
|
+
"polygon",
|
|
316
|
+
"world",
|
|
317
|
+
"world-sepolia",
|
|
318
|
+
]),
|
|
319
|
+
destinationTag: Schema.optional(Schema.String),
|
|
320
|
+
asset: Schema.String,
|
|
321
|
+
}),
|
|
322
|
+
Schema.Struct({
|
|
323
|
+
bankName: Schema.String,
|
|
324
|
+
accountLast4: Schema.String,
|
|
325
|
+
currency: Schema.String,
|
|
326
|
+
}),
|
|
327
|
+
]),
|
|
328
|
+
target: Schema.Union([
|
|
329
|
+
Schema.Struct({
|
|
330
|
+
accountId: Schema.String,
|
|
331
|
+
asset: Schema.String,
|
|
332
|
+
}),
|
|
333
|
+
Schema.Struct({
|
|
334
|
+
paymentMethodId: Schema.String,
|
|
335
|
+
asset: Schema.String,
|
|
336
|
+
}),
|
|
337
|
+
Schema.Struct({
|
|
338
|
+
address: Schema.String,
|
|
339
|
+
network: Schema.Literals([
|
|
340
|
+
"base",
|
|
341
|
+
"ethereum",
|
|
342
|
+
"solana",
|
|
343
|
+
"aptos",
|
|
344
|
+
"arbitrum",
|
|
345
|
+
"arbitrum-sepolia",
|
|
346
|
+
"optimism",
|
|
347
|
+
"polygon",
|
|
348
|
+
"world",
|
|
349
|
+
"world-sepolia",
|
|
350
|
+
]),
|
|
351
|
+
destinationTag: Schema.optional(Schema.String),
|
|
352
|
+
asset: Schema.String,
|
|
353
|
+
}),
|
|
354
|
+
Schema.Struct({
|
|
355
|
+
email: Schema.String,
|
|
356
|
+
asset: Schema.String,
|
|
357
|
+
}),
|
|
358
|
+
]),
|
|
359
|
+
sourceAmount: Schema.optional(Schema.String),
|
|
360
|
+
sourceAsset: Schema.optional(Schema.String),
|
|
361
|
+
targetAmount: Schema.optional(Schema.String),
|
|
362
|
+
targetAsset: Schema.optional(Schema.String),
|
|
363
|
+
exchangeRate: Schema.optional(
|
|
364
|
+
Schema.Struct({
|
|
365
|
+
sourceAsset: Schema.String,
|
|
366
|
+
targetAsset: Schema.String,
|
|
367
|
+
rate: Schema.String,
|
|
368
|
+
}),
|
|
369
|
+
),
|
|
370
|
+
fees: Schema.optional(
|
|
371
|
+
Schema.Array(
|
|
372
|
+
Schema.Struct({
|
|
373
|
+
type: Schema.Literals(["bank", "conversion", "network", "other"]),
|
|
374
|
+
amount: Schema.String,
|
|
375
|
+
asset: Schema.String,
|
|
376
|
+
}),
|
|
377
|
+
),
|
|
378
|
+
),
|
|
379
|
+
estimate: Schema.optional(
|
|
380
|
+
Schema.Struct({
|
|
381
|
+
exchangeRate: Schema.optional(
|
|
382
|
+
Schema.Struct({
|
|
383
|
+
sourceAsset: Schema.String,
|
|
384
|
+
targetAsset: Schema.String,
|
|
385
|
+
rate: Schema.String,
|
|
386
|
+
}),
|
|
387
|
+
),
|
|
388
|
+
targetAmount: Schema.optional(Schema.String),
|
|
389
|
+
targetAsset: Schema.optional(Schema.String),
|
|
390
|
+
fees: Schema.optional(
|
|
391
|
+
Schema.Array(
|
|
392
|
+
Schema.Struct({
|
|
393
|
+
type: Schema.Literals(["bank", "conversion", "network", "other"]),
|
|
394
|
+
amount: Schema.String,
|
|
395
|
+
asset: Schema.String,
|
|
396
|
+
}),
|
|
397
|
+
),
|
|
398
|
+
),
|
|
399
|
+
estimatedAt: Schema.String,
|
|
400
|
+
}),
|
|
401
|
+
),
|
|
402
|
+
completedAt: Schema.optional(Schema.String),
|
|
403
|
+
failureReason: Schema.optional(Schema.String),
|
|
404
|
+
expiresAt: Schema.optional(Schema.String),
|
|
405
|
+
executedAt: Schema.optional(Schema.String),
|
|
406
|
+
createdAt: Schema.optional(Schema.String),
|
|
407
|
+
updatedAt: Schema.optional(Schema.String),
|
|
408
|
+
metadata: Schema.optional(Schema.Record(Schema.String, Schema.String)),
|
|
409
|
+
details: Schema.optional(
|
|
410
|
+
Schema.Struct({
|
|
411
|
+
depositDestination: Schema.optional(
|
|
412
|
+
Schema.Struct({
|
|
413
|
+
id: Schema.String,
|
|
414
|
+
}),
|
|
415
|
+
),
|
|
416
|
+
onchainTransactions: Schema.optional(
|
|
417
|
+
Schema.Array(
|
|
418
|
+
Schema.Struct({
|
|
419
|
+
transactionHash: Schema.String,
|
|
420
|
+
network: Schema.Literals([
|
|
421
|
+
"base",
|
|
422
|
+
"ethereum",
|
|
423
|
+
"solana",
|
|
424
|
+
"aptos",
|
|
425
|
+
"arbitrum",
|
|
426
|
+
"arbitrum-sepolia",
|
|
427
|
+
"optimism",
|
|
428
|
+
"polygon",
|
|
429
|
+
"world",
|
|
430
|
+
"world-sepolia",
|
|
431
|
+
]),
|
|
432
|
+
}),
|
|
433
|
+
),
|
|
434
|
+
),
|
|
435
|
+
travelRule: Schema.optional(
|
|
436
|
+
Schema.Struct({
|
|
437
|
+
status: Schema.optional(Schema.Literals(["incomplete", "completed"])),
|
|
438
|
+
statusMessage: Schema.optional(Schema.String),
|
|
439
|
+
}),
|
|
440
|
+
),
|
|
441
|
+
}),
|
|
442
|
+
),
|
|
443
|
+
}) as unknown as Schema.Codec<CreateTransferOutput>;
|
|
444
|
+
|
|
445
|
+
// The operation
|
|
446
|
+
/**
|
|
447
|
+
* Create transfer
|
|
448
|
+
*
|
|
449
|
+
* Create a new transfer to move funds from a source to a target.
|
|
450
|
+
* All transfers first transition to `quoted`. If `execute: false`, the transfer stays quoted until you call `/v2/transfers/{transferId}/execute`.
|
|
451
|
+
* If `execute: true`, quoted status emits momentarily before the transfer moves to `processing`, where execution proceeds. Subscribe to the transfers webhook to follow progress in real time instead of polling.
|
|
452
|
+
*
|
|
453
|
+
* @param X-Idempotency-Key - An optional string request header for making requests safely retryable.
|
|
454
|
+
When included, duplicate requests with the same key will return identical responses.
|
|
455
|
+
Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys.
|
|
456
|
+
|
|
457
|
+
*/
|
|
458
|
+
export const createTransfer = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
459
|
+
inputSchema: CreateTransferInput,
|
|
460
|
+
outputSchema: CreateTransferOutput,
|
|
461
|
+
}));
|
|
@@ -1,13 +1,72 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
2
|
import { API } from "../client.ts";
|
|
3
3
|
import * as T from "../traits.ts";
|
|
4
|
-
import {
|
|
4
|
+
import { SensitiveOutputString } from "../sensitive.ts";
|
|
5
|
+
import * as Redacted from "effect/Redacted";
|
|
5
6
|
|
|
6
7
|
// Input Schema
|
|
8
|
+
export interface CreateWebhookSubscriptionInput {
|
|
9
|
+
description?: string;
|
|
10
|
+
eventTypes: (
|
|
11
|
+
| "onchain.activity.detected"
|
|
12
|
+
| "wallet.activity.detected"
|
|
13
|
+
| "wallet.activity.multi"
|
|
14
|
+
| "wallet.transaction.created"
|
|
15
|
+
| "wallet.transaction.signed"
|
|
16
|
+
| "wallet.transaction.broadcast"
|
|
17
|
+
| "wallet.transaction.replaced"
|
|
18
|
+
| "wallet.transaction.pending"
|
|
19
|
+
| "wallet.transaction.confirmed"
|
|
20
|
+
| "wallet.transaction.failed"
|
|
21
|
+
| "wallet.delegation.created"
|
|
22
|
+
| "wallet.delegation.revoked"
|
|
23
|
+
| "wallet.typed_data.signed"
|
|
24
|
+
| "wallet.message.signed"
|
|
25
|
+
| "wallet.hash.signed"
|
|
26
|
+
| "onramp.transaction.created"
|
|
27
|
+
| "onramp.transaction.updated"
|
|
28
|
+
| "onramp.transaction.success"
|
|
29
|
+
| "onramp.transaction.failed"
|
|
30
|
+
| "offramp.transaction.created"
|
|
31
|
+
| "offramp.transaction.updated"
|
|
32
|
+
| "offramp.transaction.success"
|
|
33
|
+
| "offramp.transaction.failed"
|
|
34
|
+
)[];
|
|
35
|
+
isEnabled: boolean;
|
|
36
|
+
target: { url: string; headers?: Record<string, string> };
|
|
37
|
+
metadata?: Record<string, string>;
|
|
38
|
+
labels?: Record<string, string>;
|
|
39
|
+
}
|
|
7
40
|
export const CreateWebhookSubscriptionInput =
|
|
8
41
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
9
42
|
description: Schema.optional(Schema.String),
|
|
10
|
-
eventTypes: Schema.Array(
|
|
43
|
+
eventTypes: Schema.Array(
|
|
44
|
+
Schema.Literals([
|
|
45
|
+
"onchain.activity.detected",
|
|
46
|
+
"wallet.activity.detected",
|
|
47
|
+
"wallet.activity.multi",
|
|
48
|
+
"wallet.transaction.created",
|
|
49
|
+
"wallet.transaction.signed",
|
|
50
|
+
"wallet.transaction.broadcast",
|
|
51
|
+
"wallet.transaction.replaced",
|
|
52
|
+
"wallet.transaction.pending",
|
|
53
|
+
"wallet.transaction.confirmed",
|
|
54
|
+
"wallet.transaction.failed",
|
|
55
|
+
"wallet.delegation.created",
|
|
56
|
+
"wallet.delegation.revoked",
|
|
57
|
+
"wallet.typed_data.signed",
|
|
58
|
+
"wallet.message.signed",
|
|
59
|
+
"wallet.hash.signed",
|
|
60
|
+
"onramp.transaction.created",
|
|
61
|
+
"onramp.transaction.updated",
|
|
62
|
+
"onramp.transaction.success",
|
|
63
|
+
"onramp.transaction.failed",
|
|
64
|
+
"offramp.transaction.created",
|
|
65
|
+
"offramp.transaction.updated",
|
|
66
|
+
"offramp.transaction.success",
|
|
67
|
+
"offramp.transaction.failed",
|
|
68
|
+
]),
|
|
69
|
+
),
|
|
11
70
|
isEnabled: Schema.Boolean,
|
|
12
71
|
target: Schema.Struct({
|
|
13
72
|
url: Schema.String,
|
|
@@ -15,78 +74,114 @@ export const CreateWebhookSubscriptionInput =
|
|
|
15
74
|
}),
|
|
16
75
|
metadata: Schema.optional(Schema.Record(Schema.String, Schema.String)),
|
|
17
76
|
labels: Schema.optional(Schema.Record(Schema.String, Schema.String)),
|
|
18
|
-
}).pipe(
|
|
19
|
-
|
|
20
|
-
|
|
77
|
+
}).pipe(
|
|
78
|
+
T.Http({ method: "POST", path: "/v2/data/webhooks/subscriptions" }),
|
|
79
|
+
) as unknown as Schema.Codec<CreateWebhookSubscriptionInput>;
|
|
21
80
|
|
|
22
81
|
// Output Schema
|
|
82
|
+
export interface CreateWebhookSubscriptionOutput {
|
|
83
|
+
createdAt: string;
|
|
84
|
+
updatedAt?: string;
|
|
85
|
+
description?: string;
|
|
86
|
+
eventTypes: (
|
|
87
|
+
| "onchain.activity.detected"
|
|
88
|
+
| "wallet.activity.detected"
|
|
89
|
+
| "wallet.activity.multi"
|
|
90
|
+
| "wallet.transaction.created"
|
|
91
|
+
| "wallet.transaction.signed"
|
|
92
|
+
| "wallet.transaction.broadcast"
|
|
93
|
+
| "wallet.transaction.replaced"
|
|
94
|
+
| "wallet.transaction.pending"
|
|
95
|
+
| "wallet.transaction.confirmed"
|
|
96
|
+
| "wallet.transaction.failed"
|
|
97
|
+
| "wallet.delegation.created"
|
|
98
|
+
| "wallet.delegation.revoked"
|
|
99
|
+
| "wallet.typed_data.signed"
|
|
100
|
+
| "wallet.message.signed"
|
|
101
|
+
| "wallet.hash.signed"
|
|
102
|
+
| "onramp.transaction.created"
|
|
103
|
+
| "onramp.transaction.updated"
|
|
104
|
+
| "onramp.transaction.success"
|
|
105
|
+
| "onramp.transaction.failed"
|
|
106
|
+
| "offramp.transaction.created"
|
|
107
|
+
| "offramp.transaction.updated"
|
|
108
|
+
| "offramp.transaction.success"
|
|
109
|
+
| "offramp.transaction.failed"
|
|
110
|
+
)[];
|
|
111
|
+
isEnabled: boolean;
|
|
112
|
+
metadata?: { secret?: Redacted.Redacted<string> };
|
|
113
|
+
secret: Redacted.Redacted<string>;
|
|
114
|
+
subscriptionId: string;
|
|
115
|
+
target: { url: string; headers?: Record<string, string> };
|
|
116
|
+
labels?: Record<string, string>;
|
|
117
|
+
}
|
|
23
118
|
export const CreateWebhookSubscriptionOutput =
|
|
24
119
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
25
120
|
createdAt: Schema.String,
|
|
26
121
|
updatedAt: Schema.optional(Schema.String),
|
|
27
122
|
description: Schema.optional(Schema.String),
|
|
28
|
-
eventTypes: Schema.Array(
|
|
123
|
+
eventTypes: Schema.Array(
|
|
124
|
+
Schema.Literals([
|
|
125
|
+
"onchain.activity.detected",
|
|
126
|
+
"wallet.activity.detected",
|
|
127
|
+
"wallet.activity.multi",
|
|
128
|
+
"wallet.transaction.created",
|
|
129
|
+
"wallet.transaction.signed",
|
|
130
|
+
"wallet.transaction.broadcast",
|
|
131
|
+
"wallet.transaction.replaced",
|
|
132
|
+
"wallet.transaction.pending",
|
|
133
|
+
"wallet.transaction.confirmed",
|
|
134
|
+
"wallet.transaction.failed",
|
|
135
|
+
"wallet.delegation.created",
|
|
136
|
+
"wallet.delegation.revoked",
|
|
137
|
+
"wallet.typed_data.signed",
|
|
138
|
+
"wallet.message.signed",
|
|
139
|
+
"wallet.hash.signed",
|
|
140
|
+
"onramp.transaction.created",
|
|
141
|
+
"onramp.transaction.updated",
|
|
142
|
+
"onramp.transaction.success",
|
|
143
|
+
"onramp.transaction.failed",
|
|
144
|
+
"offramp.transaction.created",
|
|
145
|
+
"offramp.transaction.updated",
|
|
146
|
+
"offramp.transaction.success",
|
|
147
|
+
"offramp.transaction.failed",
|
|
148
|
+
]),
|
|
149
|
+
),
|
|
29
150
|
isEnabled: Schema.Boolean,
|
|
30
151
|
metadata: Schema.optional(
|
|
31
152
|
Schema.Struct({
|
|
32
|
-
secret: Schema.optional(
|
|
153
|
+
secret: Schema.optional(SensitiveOutputString),
|
|
33
154
|
}),
|
|
34
155
|
),
|
|
35
|
-
secret:
|
|
156
|
+
secret: SensitiveOutputString,
|
|
36
157
|
subscriptionId: Schema.String,
|
|
37
158
|
target: Schema.Struct({
|
|
38
159
|
url: Schema.String,
|
|
39
160
|
headers: Schema.optional(Schema.Record(Schema.String, Schema.String)),
|
|
40
161
|
}),
|
|
41
162
|
labels: Schema.optional(Schema.Record(Schema.String, Schema.String)),
|
|
42
|
-
})
|
|
43
|
-
export type CreateWebhookSubscriptionOutput =
|
|
44
|
-
typeof CreateWebhookSubscriptionOutput.Type;
|
|
163
|
+
}) as unknown as Schema.Codec<CreateWebhookSubscriptionOutput>;
|
|
45
164
|
|
|
46
165
|
// The operation
|
|
47
166
|
/**
|
|
48
167
|
* Create webhook subscription
|
|
49
168
|
*
|
|
50
|
-
* Subscribe to real-time events across CDP products
|
|
51
|
-
* ###
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
* -
|
|
55
|
-
*
|
|
56
|
-
* - `
|
|
57
|
-
* - `
|
|
58
|
-
* - `
|
|
59
|
-
* - `
|
|
60
|
-
* -
|
|
61
|
-
*
|
|
62
|
-
* - `payments.transfers.quoted`
|
|
63
|
-
* - `payments.transfers.processing`
|
|
64
|
-
* - `payments.transfers.completed`
|
|
65
|
-
* - `payments.transfers.failed`
|
|
66
|
-
* - `payments.transfers.travel_rule_incomplete`
|
|
67
|
-
* - `payments.transfers.travel_rule_completed`
|
|
68
|
-
* - **No labels required** - enable the transfers webhook to monitor status transitions
|
|
69
|
-
* **Wallet Events** - Wallet activity notifications:
|
|
70
|
-
* - `wallet.activity.detected`
|
|
169
|
+
* Subscribe to real-time events across CDP products.
|
|
170
|
+
* ### Filtering
|
|
171
|
+
* Onchain events can utilize multi-label filtering to only receive events that match all the specified labels.
|
|
172
|
+
* Allows labels are:
|
|
173
|
+
* - `network` (required) — Blockchain network
|
|
174
|
+
* - `contract_address` — Smart contract address
|
|
175
|
+
* - `event_name` — Event name (e.g., "Transfer", "Burn")
|
|
176
|
+
* - `event_signature` — Event signature (e.g., "Transfer(address,address,uint256)")
|
|
177
|
+
* - `transaction_from` — Transaction sender address
|
|
178
|
+
* - `transaction_to` — Transaction recipient address
|
|
179
|
+
* - `params.*` — Any event parameter from the log event (e.g., `params.from`, `params.to`, `params.sender`, `params.tokenId`)
|
|
180
|
+
* For webhook types that aren't `onchain.*`, labels are ignored.
|
|
71
181
|
* ### Webhook Signature Verification
|
|
72
|
-
* All webhooks include
|
|
73
|
-
*
|
|
74
|
-
* **Note:** Webhooks are in beta and this interface is subject to change.
|
|
182
|
+
* All webhooks include an HMAC-SHA256 signed header for security. The signature is signed with the secret that is returned in the `secret` field when creating a subscription.
|
|
183
|
+
* Do not lose the secret, as you will not be able to recreate it. If you lose the secret, you will need to create a new subscription.
|
|
75
184
|
* See the [verification guide](https://docs.cdp.coinbase.com/onramp-&-offramp/webhooks#webhook-signature-verification) for implementation details.
|
|
76
|
-
* ### Onchain Label Filtering
|
|
77
|
-
* For `onchain.activity.detected` events, use `labels` for precise filtering with AND logic (max 20 labels per webhook).
|
|
78
|
-
* **Allowed labels** (all in snake_case format):
|
|
79
|
-
* - `network` (required) - Blockchain network
|
|
80
|
-
* - `contract_address` - Smart contract address
|
|
81
|
-
* - `event_name` - Event name (e.g., "Transfer", "Burn")
|
|
82
|
-
* - `event_signature` - Event signature hash
|
|
83
|
-
* - `transaction_from` - Transaction sender address
|
|
84
|
-
* - `transaction_to` - Transaction recipient address
|
|
85
|
-
* - `params.*` - Any event parameter (e.g., `params.from`, `params.to`, `params.sender`, `params.tokenId`)
|
|
86
|
-
* **Examples**:
|
|
87
|
-
* - **Liquidity Pool Monitor**: `{"network": "base-mainnet", "contract_address": "0xcd1f9777571493aeacb7eae45cd30a226d3e612d", "event_name": "Burn"}`
|
|
88
|
-
* - **Price Oracle Tracker**: `{"network": "base-mainnet", "contract_address": "0xbac4a9428ea707c51f171ed9890c3c2fa810305d", "event_name": "PriceUpdated"}`
|
|
89
|
-
* - **DeFi Protocol Activity**: `{"network": "base-mainnet", "contract_address": "0x45c6e6a47a711b14d8357d5243f46704904578e3", "event_name": "Deposit"}`
|
|
90
185
|
*/
|
|
91
186
|
export const createWebhookSubscription = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
92
187
|
() => ({
|