@distilled.cloud/coinbase 0.0.0-john
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/README.md +77 -0
- package/lib/category.d.ts +5 -0
- package/lib/category.d.ts.map +1 -0
- package/lib/category.js +5 -0
- package/lib/category.js.map +1 -0
- package/lib/client.d.ts +12 -0
- package/lib/client.d.ts.map +1 -0
- package/lib/client.js +245 -0
- package/lib/client.js.map +1 -0
- package/lib/credentials.d.ts +33 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +30 -0
- package/lib/credentials.js.map +1 -0
- package/lib/errors.d.ts +855 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +466 -0
- package/lib/errors.js.map +1 -0
- package/lib/index.d.ts +16 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +16 -0
- package/lib/index.js.map +1 -0
- package/lib/operations/addEndUserEvmAccount.d.ts +30 -0
- package/lib/operations/addEndUserEvmAccount.d.ts.map +1 -0
- package/lib/operations/addEndUserEvmAccount.js +38 -0
- package/lib/operations/addEndUserEvmAccount.js.map +1 -0
- package/lib/operations/addEndUserEvmSmartAccount.d.ts +32 -0
- package/lib/operations/addEndUserEvmSmartAccount.d.ts.map +1 -0
- package/lib/operations/addEndUserEvmSmartAccount.js +43 -0
- package/lib/operations/addEndUserEvmSmartAccount.js.map +1 -0
- package/lib/operations/addEndUserSolanaAccount.d.ts +30 -0
- package/lib/operations/addEndUserSolanaAccount.d.ts.map +1 -0
- package/lib/operations/addEndUserSolanaAccount.js +38 -0
- package/lib/operations/addEndUserSolanaAccount.js.map +1 -0
- package/lib/operations/createEndUser.d.ts +61 -0
- package/lib/operations/createEndUser.d.ts.map +1 -0
- package/lib/operations/createEndUser.js +67 -0
- package/lib/operations/createEndUser.js.map +1 -0
- package/lib/operations/createEvmAccount.d.ts +30 -0
- package/lib/operations/createEvmAccount.d.ts.map +1 -0
- package/lib/operations/createEvmAccount.js +36 -0
- package/lib/operations/createEvmAccount.js.map +1 -0
- package/lib/operations/createEvmEip7702Delegation.d.ts +34 -0
- package/lib/operations/createEvmEip7702Delegation.d.ts.map +1 -0
- package/lib/operations/createEvmEip7702Delegation.js +53 -0
- package/lib/operations/createEvmEip7702Delegation.js.map +1 -0
- package/lib/operations/createEvmSmartAccount.d.ts +27 -0
- package/lib/operations/createEvmSmartAccount.d.ts.map +1 -0
- package/lib/operations/createEvmSmartAccount.js +35 -0
- package/lib/operations/createEvmSmartAccount.js.map +1 -0
- package/lib/operations/createEvmSwapQuote.d.ts +26 -0
- package/lib/operations/createEvmSwapQuote.d.ts.map +1 -0
- package/lib/operations/createEvmSwapQuote.js +40 -0
- package/lib/operations/createEvmSwapQuote.js.map +1 -0
- package/lib/operations/createOnrampOrder.d.ts +58 -0
- package/lib/operations/createOnrampOrder.d.ts.map +1 -0
- package/lib/operations/createOnrampOrder.js +79 -0
- package/lib/operations/createOnrampOrder.js.map +1 -0
- package/lib/operations/createOnrampSession.d.ts +55 -0
- package/lib/operations/createOnrampSession.d.ts.map +1 -0
- package/lib/operations/createOnrampSession.js +70 -0
- package/lib/operations/createOnrampSession.js.map +1 -0
- package/lib/operations/createPolicy.d.ts +28 -0
- package/lib/operations/createPolicy.d.ts.map +1 -0
- package/lib/operations/createPolicy.js +34 -0
- package/lib/operations/createPolicy.js.map +1 -0
- package/lib/operations/createSolanaAccount.d.ts +30 -0
- package/lib/operations/createSolanaAccount.d.ts.map +1 -0
- package/lib/operations/createSolanaAccount.js +38 -0
- package/lib/operations/createSolanaAccount.js.map +1 -0
- package/lib/operations/createSpendPermission.d.ts +55 -0
- package/lib/operations/createSpendPermission.d.ts.map +1 -0
- package/lib/operations/createSpendPermission.js +93 -0
- package/lib/operations/createSpendPermission.js.map +1 -0
- package/lib/operations/createWebhookSubscription.d.ts +74 -0
- package/lib/operations/createWebhookSubscription.d.ts.map +1 -0
- package/lib/operations/createWebhookSubscription.js +82 -0
- package/lib/operations/createWebhookSubscription.js.map +1 -0
- package/lib/operations/deletePolicy.d.ts +20 -0
- package/lib/operations/deletePolicy.d.ts.map +1 -0
- package/lib/operations/deletePolicy.js +26 -0
- package/lib/operations/deletePolicy.js.map +1 -0
- package/lib/operations/deleteWebhookSubscription.d.ts +21 -0
- package/lib/operations/deleteWebhookSubscription.d.ts.map +1 -0
- package/lib/operations/deleteWebhookSubscription.js +32 -0
- package/lib/operations/deleteWebhookSubscription.js.map +1 -0
- package/lib/operations/exportEvmAccount.d.ts +27 -0
- package/lib/operations/exportEvmAccount.d.ts.map +1 -0
- package/lib/operations/exportEvmAccount.js +33 -0
- package/lib/operations/exportEvmAccount.js.map +1 -0
- package/lib/operations/exportEvmAccountByName.d.ts +27 -0
- package/lib/operations/exportEvmAccountByName.d.ts.map +1 -0
- package/lib/operations/exportEvmAccountByName.js +35 -0
- package/lib/operations/exportEvmAccountByName.js.map +1 -0
- package/lib/operations/exportSolanaAccount.d.ts +27 -0
- package/lib/operations/exportSolanaAccount.d.ts.map +1 -0
- package/lib/operations/exportSolanaAccount.js +35 -0
- package/lib/operations/exportSolanaAccount.js.map +1 -0
- package/lib/operations/exportSolanaAccountByName.d.ts +27 -0
- package/lib/operations/exportSolanaAccountByName.d.ts.map +1 -0
- package/lib/operations/exportSolanaAccountByName.js +38 -0
- package/lib/operations/exportSolanaAccountByName.js.map +1 -0
- package/lib/operations/getEndUser.d.ts +46 -0
- package/lib/operations/getEndUser.d.ts.map +1 -0
- package/lib/operations/getEndUser.js +52 -0
- package/lib/operations/getEndUser.js.map +1 -0
- package/lib/operations/getEvmAccount.d.ts +22 -0
- package/lib/operations/getEvmAccount.d.ts.map +1 -0
- package/lib/operations/getEvmAccount.js +28 -0
- package/lib/operations/getEvmAccount.js.map +1 -0
- package/lib/operations/getEvmAccountByName.d.ts +22 -0
- package/lib/operations/getEvmAccountByName.d.ts.map +1 -0
- package/lib/operations/getEvmAccountByName.js +30 -0
- package/lib/operations/getEvmAccountByName.js.map +1 -0
- package/lib/operations/getEvmEip7702DelegationOperationById.d.ts +22 -0
- package/lib/operations/getEvmEip7702DelegationOperationById.d.ts.map +1 -0
- package/lib/operations/getEvmEip7702DelegationOperationById.js +48 -0
- package/lib/operations/getEvmEip7702DelegationOperationById.js.map +1 -0
- package/lib/operations/getEvmSmartAccount.d.ts +23 -0
- package/lib/operations/getEvmSmartAccount.d.ts.map +1 -0
- package/lib/operations/getEvmSmartAccount.js +31 -0
- package/lib/operations/getEvmSmartAccount.js.map +1 -0
- package/lib/operations/getEvmSmartAccountByName.d.ts +23 -0
- package/lib/operations/getEvmSmartAccountByName.d.ts.map +1 -0
- package/lib/operations/getEvmSmartAccountByName.js +31 -0
- package/lib/operations/getEvmSmartAccountByName.js.map +1 -0
- package/lib/operations/getEvmSwapPrice.d.ts +21 -0
- package/lib/operations/getEvmSwapPrice.d.ts.map +1 -0
- package/lib/operations/getEvmSwapPrice.js +27 -0
- package/lib/operations/getEvmSwapPrice.js.map +1 -0
- package/lib/operations/getOnrampOrderById.d.ts +39 -0
- package/lib/operations/getOnrampOrderById.d.ts.map +1 -0
- package/lib/operations/getOnrampOrderById.js +56 -0
- package/lib/operations/getOnrampOrderById.js.map +1 -0
- package/lib/operations/getOnrampUserLimits.d.ts +24 -0
- package/lib/operations/getOnrampUserLimits.d.ts.map +1 -0
- package/lib/operations/getOnrampUserLimits.js +38 -0
- package/lib/operations/getOnrampUserLimits.js.map +1 -0
- package/lib/operations/getPolicyById.d.ts +23 -0
- package/lib/operations/getPolicyById.d.ts.map +1 -0
- package/lib/operations/getPolicyById.js +29 -0
- package/lib/operations/getPolicyById.js.map +1 -0
- package/lib/operations/getSQLGrammar.d.ts +14 -0
- package/lib/operations/getSQLGrammar.d.ts.map +1 -0
- package/lib/operations/getSQLGrammar.js +20 -0
- package/lib/operations/getSQLGrammar.js.map +1 -0
- package/lib/operations/getSolanaAccount.d.ts +22 -0
- package/lib/operations/getSolanaAccount.d.ts.map +1 -0
- package/lib/operations/getSolanaAccount.js +28 -0
- package/lib/operations/getSolanaAccount.js.map +1 -0
- package/lib/operations/getSolanaAccountByName.d.ts +22 -0
- package/lib/operations/getSolanaAccountByName.d.ts.map +1 -0
- package/lib/operations/getSolanaAccountByName.js +30 -0
- package/lib/operations/getSolanaAccountByName.js.map +1 -0
- package/lib/operations/getUserOperation.d.ts +39 -0
- package/lib/operations/getUserOperation.d.ts.map +1 -0
- package/lib/operations/getUserOperation.js +66 -0
- package/lib/operations/getUserOperation.js.map +1 -0
- package/lib/operations/getWebhookSubscription.d.ts +37 -0
- package/lib/operations/getWebhookSubscription.d.ts.map +1 -0
- package/lib/operations/getWebhookSubscription.js +48 -0
- package/lib/operations/getWebhookSubscription.js.map +1 -0
- package/lib/operations/importEndUser.d.ts +56 -0
- package/lib/operations/importEndUser.d.ts.map +1 -0
- package/lib/operations/importEndUser.js +62 -0
- package/lib/operations/importEndUser.js.map +1 -0
- package/lib/operations/importEvmAccount.d.ts +31 -0
- package/lib/operations/importEvmAccount.d.ts.map +1 -0
- package/lib/operations/importEvmAccount.js +37 -0
- package/lib/operations/importEvmAccount.js.map +1 -0
- package/lib/operations/importSolanaAccount.d.ts +30 -0
- package/lib/operations/importSolanaAccount.d.ts.map +1 -0
- package/lib/operations/importSolanaAccount.js +38 -0
- package/lib/operations/importSolanaAccount.js.map +1 -0
- package/lib/operations/index.d.ts +74 -0
- package/lib/operations/index.d.ts.map +1 -0
- package/lib/operations/index.js +74 -0
- package/lib/operations/index.js.map +1 -0
- package/lib/operations/listDataTokenBalances.d.ts +37 -0
- package/lib/operations/listDataTokenBalances.d.ts.map +1 -0
- package/lib/operations/listDataTokenBalances.js +48 -0
- package/lib/operations/listDataTokenBalances.js.map +1 -0
- package/lib/operations/listEndUsers.d.ts +53 -0
- package/lib/operations/listEndUsers.d.ts.map +1 -0
- package/lib/operations/listEndUsers.js +59 -0
- package/lib/operations/listEndUsers.js.map +1 -0
- package/lib/operations/listEvmAccounts.d.ts +28 -0
- package/lib/operations/listEvmAccounts.d.ts.map +1 -0
- package/lib/operations/listEvmAccounts.js +34 -0
- package/lib/operations/listEvmAccounts.js.map +1 -0
- package/lib/operations/listEvmSmartAccounts.d.ts +29 -0
- package/lib/operations/listEvmSmartAccounts.d.ts.map +1 -0
- package/lib/operations/listEvmSmartAccounts.js +37 -0
- package/lib/operations/listEvmSmartAccounts.js.map +1 -0
- package/lib/operations/listEvmTokenBalances.d.ts +37 -0
- package/lib/operations/listEvmTokenBalances.d.ts.map +1 -0
- package/lib/operations/listEvmTokenBalances.js +48 -0
- package/lib/operations/listEvmTokenBalances.js.map +1 -0
- package/lib/operations/listPolicies.d.ts +31 -0
- package/lib/operations/listPolicies.d.ts.map +1 -0
- package/lib/operations/listPolicies.js +37 -0
- package/lib/operations/listPolicies.js.map +1 -0
- package/lib/operations/listSolanaAccounts.d.ts +29 -0
- package/lib/operations/listSolanaAccounts.d.ts.map +1 -0
- package/lib/operations/listSolanaAccounts.js +37 -0
- package/lib/operations/listSolanaAccounts.js.map +1 -0
- package/lib/operations/listSolanaTokenBalances.d.ts +36 -0
- package/lib/operations/listSolanaTokenBalances.d.ts.map +1 -0
- package/lib/operations/listSolanaTokenBalances.js +47 -0
- package/lib/operations/listSolanaTokenBalances.js.map +1 -0
- package/lib/operations/listSpendPermissions.d.ts +40 -0
- package/lib/operations/listSpendPermissions.d.ts.map +1 -0
- package/lib/operations/listSpendPermissions.js +60 -0
- package/lib/operations/listSpendPermissions.js.map +1 -0
- package/lib/operations/listTokensForAccount.d.ts +23 -0
- package/lib/operations/listTokensForAccount.d.ts.map +1 -0
- package/lib/operations/listTokensForAccount.js +34 -0
- package/lib/operations/listTokensForAccount.js.map +1 -0
- package/lib/operations/listWebhookSubscriptions.d.ts +42 -0
- package/lib/operations/listWebhookSubscriptions.d.ts.map +1 -0
- package/lib/operations/listWebhookSubscriptions.js +50 -0
- package/lib/operations/listWebhookSubscriptions.js.map +1 -0
- package/lib/operations/prepareAndSendUserOperation.d.ts +53 -0
- package/lib/operations/prepareAndSendUserOperation.d.ts.map +1 -0
- package/lib/operations/prepareAndSendUserOperation.js +93 -0
- package/lib/operations/prepareAndSendUserOperation.js.map +1 -0
- package/lib/operations/prepareUserOperation.d.ts +46 -0
- package/lib/operations/prepareUserOperation.d.ts.map +1 -0
- package/lib/operations/prepareUserOperation.js +86 -0
- package/lib/operations/prepareUserOperation.js.map +1 -0
- package/lib/operations/requestEvmFaucet.d.ts +22 -0
- package/lib/operations/requestEvmFaucet.d.ts.map +1 -0
- package/lib/operations/requestEvmFaucet.js +32 -0
- package/lib/operations/requestEvmFaucet.js.map +1 -0
- package/lib/operations/requestSolanaFaucet.d.ts +21 -0
- package/lib/operations/requestSolanaFaucet.d.ts.map +1 -0
- package/lib/operations/requestSolanaFaucet.js +29 -0
- package/lib/operations/requestSolanaFaucet.js.map +1 -0
- package/lib/operations/revokeSpendPermission.d.ts +48 -0
- package/lib/operations/revokeSpendPermission.d.ts.map +1 -0
- package/lib/operations/revokeSpendPermission.js +86 -0
- package/lib/operations/revokeSpendPermission.js.map +1 -0
- package/lib/operations/runSQLQuery.d.ts +47 -0
- package/lib/operations/runSQLQuery.d.ts.map +1 -0
- package/lib/operations/runSQLQuery.js +74 -0
- package/lib/operations/runSQLQuery.js.map +1 -0
- package/lib/operations/sendEvmTransaction.d.ts +44 -0
- package/lib/operations/sendEvmTransaction.d.ts.map +1 -0
- package/lib/operations/sendEvmTransaction.js +64 -0
- package/lib/operations/sendEvmTransaction.js.map +1 -0
- package/lib/operations/sendSolanaTransaction.d.ts +38 -0
- package/lib/operations/sendSolanaTransaction.d.ts.map +1 -0
- package/lib/operations/sendSolanaTransaction.js +46 -0
- package/lib/operations/sendSolanaTransaction.js.map +1 -0
- package/lib/operations/sendUserOperation.d.ts +43 -0
- package/lib/operations/sendUserOperation.d.ts.map +1 -0
- package/lib/operations/sendUserOperation.js +71 -0
- package/lib/operations/sendUserOperation.js.map +1 -0
- package/lib/operations/settleX402Payment.d.ts +23 -0
- package/lib/operations/settleX402Payment.d.ts.map +1 -0
- package/lib/operations/settleX402Payment.js +79 -0
- package/lib/operations/settleX402Payment.js.map +1 -0
- package/lib/operations/signEvmHash.d.ts +27 -0
- package/lib/operations/signEvmHash.d.ts.map +1 -0
- package/lib/operations/signEvmHash.js +33 -0
- package/lib/operations/signEvmHash.js.map +1 -0
- package/lib/operations/signEvmMessage.d.ts +28 -0
- package/lib/operations/signEvmMessage.d.ts.map +1 -0
- package/lib/operations/signEvmMessage.js +34 -0
- package/lib/operations/signEvmMessage.js.map +1 -0
- package/lib/operations/signEvmTransaction.d.ts +29 -0
- package/lib/operations/signEvmTransaction.d.ts.map +1 -0
- package/lib/operations/signEvmTransaction.js +40 -0
- package/lib/operations/signEvmTransaction.js.map +1 -0
- package/lib/operations/signEvmTypedData.d.ts +36 -0
- package/lib/operations/signEvmTypedData.d.ts.map +1 -0
- package/lib/operations/signEvmTypedData.js +45 -0
- package/lib/operations/signEvmTypedData.js.map +1 -0
- package/lib/operations/signSolanaMessage.d.ts +28 -0
- package/lib/operations/signSolanaMessage.d.ts.map +1 -0
- package/lib/operations/signSolanaMessage.js +38 -0
- package/lib/operations/signSolanaMessage.js.map +1 -0
- package/lib/operations/signSolanaTransaction.d.ts +33 -0
- package/lib/operations/signSolanaTransaction.d.ts.map +1 -0
- package/lib/operations/signSolanaTransaction.js +44 -0
- package/lib/operations/signSolanaTransaction.js.map +1 -0
- package/lib/operations/supportedX402PaymentKinds.d.ts +21 -0
- package/lib/operations/supportedX402PaymentKinds.d.ts.map +1 -0
- package/lib/operations/supportedX402PaymentKinds.js +40 -0
- package/lib/operations/supportedX402PaymentKinds.js.map +1 -0
- package/lib/operations/updateEvmAccount.d.ts +28 -0
- package/lib/operations/updateEvmAccount.d.ts.map +1 -0
- package/lib/operations/updateEvmAccount.js +34 -0
- package/lib/operations/updateEvmAccount.js.map +1 -0
- package/lib/operations/updateEvmSmartAccount.d.ts +24 -0
- package/lib/operations/updateEvmSmartAccount.d.ts.map +1 -0
- package/lib/operations/updateEvmSmartAccount.js +32 -0
- package/lib/operations/updateEvmSmartAccount.js.map +1 -0
- package/lib/operations/updatePolicy.d.ts +29 -0
- package/lib/operations/updatePolicy.d.ts.map +1 -0
- package/lib/operations/updatePolicy.js +35 -0
- package/lib/operations/updatePolicy.js.map +1 -0
- package/lib/operations/updateSolanaAccount.d.ts +28 -0
- package/lib/operations/updateSolanaAccount.d.ts.map +1 -0
- package/lib/operations/updateSolanaAccount.js +36 -0
- package/lib/operations/updateSolanaAccount.js.map +1 -0
- package/lib/operations/updateWebhookSubscription.d.ts +47 -0
- package/lib/operations/updateWebhookSubscription.d.ts.map +1 -0
- package/lib/operations/updateWebhookSubscription.js +58 -0
- package/lib/operations/updateWebhookSubscription.js.map +1 -0
- package/lib/operations/validateEndUserAccessToken.d.ts +44 -0
- package/lib/operations/validateEndUserAccessToken.d.ts.map +1 -0
- package/lib/operations/validateEndUserAccessToken.js +52 -0
- package/lib/operations/validateEndUserAccessToken.js.map +1 -0
- package/lib/operations/verifyX402Payment.d.ts +21 -0
- package/lib/operations/verifyX402Payment.d.ts.map +1 -0
- package/lib/operations/verifyX402Payment.js +72 -0
- package/lib/operations/verifyX402Payment.js.map +1 -0
- package/lib/retry.d.ts +22 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +21 -0
- package/lib/retry.js.map +1 -0
- package/lib/sensitive.d.ts +5 -0
- package/lib/sensitive.d.ts.map +1 -0
- package/lib/sensitive.js +5 -0
- package/lib/sensitive.js.map +1 -0
- package/lib/traits.d.ts +5 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +5 -0
- package/lib/traits.js.map +1 -0
- package/package.json +89 -0
- package/src/category.ts +4 -0
- package/src/client.ts +291 -0
- package/src/credentials.ts +66 -0
- package/src/errors.ts +694 -0
- package/src/index.ts +15 -0
- package/src/operations/addEndUserEvmAccount.ts +44 -0
- package/src/operations/addEndUserEvmSmartAccount.ts +53 -0
- package/src/operations/addEndUserSolanaAccount.ts +46 -0
- package/src/operations/createEndUser.ts +87 -0
- package/src/operations/createEvmAccount.ts +42 -0
- package/src/operations/createEvmEip7702Delegation.ts +63 -0
- package/src/operations/createEvmSmartAccount.ts +42 -0
- package/src/operations/createEvmSwapQuote.ts +44 -0
- package/src/operations/createOnrampOrder.ts +89 -0
- package/src/operations/createOnrampSession.ts +80 -0
- package/src/operations/createPolicy.ts +38 -0
- package/src/operations/createSolanaAccount.ts +42 -0
- package/src/operations/createSpendPermission.ts +110 -0
- package/src/operations/createWebhookSubscription.ts +92 -0
- package/src/operations/deletePolicy.ts +32 -0
- package/src/operations/deleteWebhookSubscription.ts +42 -0
- package/src/operations/exportEvmAccount.ts +39 -0
- package/src/operations/exportEvmAccountByName.ts +45 -0
- package/src/operations/exportSolanaAccount.ts +41 -0
- package/src/operations/exportSolanaAccountByName.ts +48 -0
- package/src/operations/getEndUser.ts +68 -0
- package/src/operations/getEvmAccount.ts +32 -0
- package/src/operations/getEvmAccountByName.ts +34 -0
- package/src/operations/getEvmEip7702DelegationOperationById.ts +56 -0
- package/src/operations/getEvmSmartAccount.ts +35 -0
- package/src/operations/getEvmSmartAccountByName.ts +41 -0
- package/src/operations/getEvmSwapPrice.ts +31 -0
- package/src/operations/getOnrampOrderById.ts +62 -0
- package/src/operations/getOnrampUserLimits.ts +44 -0
- package/src/operations/getPolicyById.ts +35 -0
- package/src/operations/getSQLGrammar.ts +26 -0
- package/src/operations/getSolanaAccount.ts +34 -0
- package/src/operations/getSolanaAccountByName.ts +40 -0
- package/src/operations/getUserOperation.ts +82 -0
- package/src/operations/getWebhookSubscription.ts +60 -0
- package/src/operations/importEndUser.ts +78 -0
- package/src/operations/importEvmAccount.ts +43 -0
- package/src/operations/importSolanaAccount.ts +42 -0
- package/src/operations/index.ts +73 -0
- package/src/operations/listDataTokenBalances.ts +59 -0
- package/src/operations/listEndUsers.ts +77 -0
- package/src/operations/listEvmAccounts.ts +40 -0
- package/src/operations/listEvmSmartAccounts.ts +45 -0
- package/src/operations/listEvmTokenBalances.ts +58 -0
- package/src/operations/listPolicies.ts +43 -0
- package/src/operations/listSolanaAccounts.ts +43 -0
- package/src/operations/listSolanaTokenBalances.ts +59 -0
- package/src/operations/listSpendPermissions.ts +70 -0
- package/src/operations/listTokensForAccount.ts +42 -0
- package/src/operations/listWebhookSubscriptions.ts +62 -0
- package/src/operations/prepareAndSendUserOperation.ts +113 -0
- package/src/operations/prepareUserOperation.ts +104 -0
- package/src/operations/requestEvmFaucet.ts +38 -0
- package/src/operations/requestSolanaFaucet.ts +33 -0
- package/src/operations/revokeSpendPermission.ts +103 -0
- package/src/operations/runSQLQuery.ts +92 -0
- package/src/operations/sendEvmTransaction.ts +70 -0
- package/src/operations/sendSolanaTransaction.ts +55 -0
- package/src/operations/sendUserOperation.ts +87 -0
- package/src/operations/settleX402Payment.ts +87 -0
- package/src/operations/signEvmHash.ts +37 -0
- package/src/operations/signEvmMessage.ts +40 -0
- package/src/operations/signEvmTransaction.ts +46 -0
- package/src/operations/signEvmTypedData.ts +53 -0
- package/src/operations/signSolanaMessage.ts +46 -0
- package/src/operations/signSolanaTransaction.ts +53 -0
- package/src/operations/supportedX402PaymentKinds.ts +52 -0
- package/src/operations/updateEvmAccount.ts +40 -0
- package/src/operations/updateEvmSmartAccount.ts +39 -0
- package/src/operations/updatePolicy.ts +41 -0
- package/src/operations/updateSolanaAccount.ts +40 -0
- package/src/operations/updateWebhookSubscription.ts +70 -0
- package/src/operations/validateEndUserAccessToken.ts +74 -0
- package/src/operations/verifyX402Payment.ts +80 -0
- package/src/retry.ts +37 -0
- package/src/sensitive.ts +4 -0
- package/src/traits.ts +4 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const RunSQLQueryInput: Schema.Struct<{
|
|
3
|
+
readonly sql: Schema.String;
|
|
4
|
+
readonly cache: Schema.optional<Schema.Struct<{
|
|
5
|
+
readonly maxAgeMs: Schema.optional<Schema.Number>;
|
|
6
|
+
}>>;
|
|
7
|
+
}>;
|
|
8
|
+
export type RunSQLQueryInput = typeof RunSQLQueryInput.Type;
|
|
9
|
+
export declare const RunSQLQueryOutput: Schema.Struct<{
|
|
10
|
+
readonly result: Schema.optional<Schema.$Array<Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
11
|
+
readonly schema: Schema.optional<Schema.Struct<{
|
|
12
|
+
readonly columns: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
13
|
+
readonly name: Schema.optional<Schema.String>;
|
|
14
|
+
readonly type: Schema.optional<Schema.Literals<readonly ["String", "UInt8", "UInt16", "UInt32", "UInt64", "UInt128", "UInt256", "Int8", "Int16", "Int32", "Int64", "Int128", "Int256", "Float32", "Float64", "Bool", "Date", "DateTime", "DateTime64", "UUID"]>>;
|
|
15
|
+
}>>>;
|
|
16
|
+
}>>;
|
|
17
|
+
readonly metadata: Schema.optional<Schema.Struct<{
|
|
18
|
+
readonly cached: Schema.optional<Schema.Boolean>;
|
|
19
|
+
readonly executionTimestamp: Schema.optional<Schema.String>;
|
|
20
|
+
readonly executionTimeMs: Schema.optional<Schema.Number>;
|
|
21
|
+
readonly rowCount: Schema.optional<Schema.Number>;
|
|
22
|
+
}>>;
|
|
23
|
+
}>;
|
|
24
|
+
export type RunSQLQueryOutput = typeof RunSQLQueryOutput.Type;
|
|
25
|
+
/**
|
|
26
|
+
* Run SQL Query
|
|
27
|
+
*
|
|
28
|
+
* Run a read-only SQL query against indexed blockchain data including transactions, events, and decoded logs.
|
|
29
|
+
* This endpoint provides direct SQL access to comprehensive blockchain data across supported networks.
|
|
30
|
+
* Queries are executed against optimized data structures for high-performance analytics.
|
|
31
|
+
* ### Allowed Queries
|
|
32
|
+
* - Standard SQL syntax (ClickHouse dialect)
|
|
33
|
+
* - Read-only queries (SELECT statements)
|
|
34
|
+
* - No DDL or DML operations
|
|
35
|
+
* - No cartesian products
|
|
36
|
+
* ### Supported Tables
|
|
37
|
+
* - `base.events` - Base mainnet decoded event logs with parameters, event signature, topics, and more.
|
|
38
|
+
* - `base.transactions` - Base mainnet transaction data including hash, block number, gas usage.
|
|
39
|
+
* - `base.blocks` - Base mainnet block information.
|
|
40
|
+
* - `base.encoded_logs` - Encoded log data of event logs that aren't able to be decoded by our event decoder (ex: log0 opcode).
|
|
41
|
+
* - `base.transfers` - All event logs with event signature `Transfer(address,address,uint256)`. ERC-20, ERC-721, and ERC-1155 transfers are all included.
|
|
42
|
+
* ### Query Limits
|
|
43
|
+
* - Maximum result set: 100,000 rows
|
|
44
|
+
* - Query timeout: 30 seconds
|
|
45
|
+
*/
|
|
46
|
+
export declare const runSQLQuery: any;
|
|
47
|
+
//# sourceMappingURL=runSQLQuery.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runSQLQuery.d.ts","sourceRoot":"","sources":["../../src/operations/runSQLQuery.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,gBAAgB;;;;;EAOkC,CAAC;AAChE,MAAM,MAAM,gBAAgB,GAAG,OAAO,gBAAgB,CAAC,IAAI,CAAC;AAG5D,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;EA+C5B,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAC,IAAI,CAAC;AAG9D;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,WAAW,KAGrB,CAAC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const RunSQLQueryInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
6
|
+
sql: Schema.String,
|
|
7
|
+
cache: Schema.optional(Schema.Struct({
|
|
8
|
+
maxAgeMs: Schema.optional(Schema.Number),
|
|
9
|
+
})),
|
|
10
|
+
}).pipe(T.Http({ method: "POST", path: "/v2/data/query/run" }));
|
|
11
|
+
// Output Schema
|
|
12
|
+
export const RunSQLQueryOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
13
|
+
result: Schema.optional(Schema.Array(Schema.Record(Schema.String, Schema.Unknown))),
|
|
14
|
+
schema: Schema.optional(Schema.Struct({
|
|
15
|
+
columns: Schema.optional(Schema.Array(Schema.Struct({
|
|
16
|
+
name: Schema.optional(Schema.String),
|
|
17
|
+
type: Schema.optional(Schema.Literals([
|
|
18
|
+
"String",
|
|
19
|
+
"UInt8",
|
|
20
|
+
"UInt16",
|
|
21
|
+
"UInt32",
|
|
22
|
+
"UInt64",
|
|
23
|
+
"UInt128",
|
|
24
|
+
"UInt256",
|
|
25
|
+
"Int8",
|
|
26
|
+
"Int16",
|
|
27
|
+
"Int32",
|
|
28
|
+
"Int64",
|
|
29
|
+
"Int128",
|
|
30
|
+
"Int256",
|
|
31
|
+
"Float32",
|
|
32
|
+
"Float64",
|
|
33
|
+
"Bool",
|
|
34
|
+
"Date",
|
|
35
|
+
"DateTime",
|
|
36
|
+
"DateTime64",
|
|
37
|
+
"UUID",
|
|
38
|
+
])),
|
|
39
|
+
}))),
|
|
40
|
+
})),
|
|
41
|
+
metadata: Schema.optional(Schema.Struct({
|
|
42
|
+
cached: Schema.optional(Schema.Boolean),
|
|
43
|
+
executionTimestamp: Schema.optional(Schema.String),
|
|
44
|
+
executionTimeMs: Schema.optional(Schema.Number),
|
|
45
|
+
rowCount: Schema.optional(Schema.Number),
|
|
46
|
+
})),
|
|
47
|
+
});
|
|
48
|
+
// The operation
|
|
49
|
+
/**
|
|
50
|
+
* Run SQL Query
|
|
51
|
+
*
|
|
52
|
+
* Run a read-only SQL query against indexed blockchain data including transactions, events, and decoded logs.
|
|
53
|
+
* This endpoint provides direct SQL access to comprehensive blockchain data across supported networks.
|
|
54
|
+
* Queries are executed against optimized data structures for high-performance analytics.
|
|
55
|
+
* ### Allowed Queries
|
|
56
|
+
* - Standard SQL syntax (ClickHouse dialect)
|
|
57
|
+
* - Read-only queries (SELECT statements)
|
|
58
|
+
* - No DDL or DML operations
|
|
59
|
+
* - No cartesian products
|
|
60
|
+
* ### Supported Tables
|
|
61
|
+
* - `base.events` - Base mainnet decoded event logs with parameters, event signature, topics, and more.
|
|
62
|
+
* - `base.transactions` - Base mainnet transaction data including hash, block number, gas usage.
|
|
63
|
+
* - `base.blocks` - Base mainnet block information.
|
|
64
|
+
* - `base.encoded_logs` - Encoded log data of event logs that aren't able to be decoded by our event decoder (ex: log0 opcode).
|
|
65
|
+
* - `base.transfers` - All event logs with event signature `Transfer(address,address,uint256)`. ERC-20, ERC-721, and ERC-1155 transfers are all included.
|
|
66
|
+
* ### Query Limits
|
|
67
|
+
* - Maximum result set: 100,000 rows
|
|
68
|
+
* - Query timeout: 30 seconds
|
|
69
|
+
*/
|
|
70
|
+
export const runSQLQuery = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
71
|
+
inputSchema: RunSQLQueryInput,
|
|
72
|
+
outputSchema: RunSQLQueryOutput,
|
|
73
|
+
}));
|
|
74
|
+
//# sourceMappingURL=runSQLQuery.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runSQLQuery.js","sourceRoot":"","sources":["../../src/operations/runSQLQuery.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,CAAC,MAAM,WAAW,CAAC;AAE/B,eAAe;AACf,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxE,GAAG,EAAE,MAAM,CAAC,MAAM;IAClB,KAAK,EAAE,MAAM,CAAC,QAAQ,CACpB,MAAM,CAAC,MAAM,CAAC;QACZ,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;KACzC,CAAC,CACH;CACF,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,EAAE,CAAC,CAAC,CAAC;AAGhE,gBAAgB;AAChB,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACzE,MAAM,EAAE,MAAM,CAAC,QAAQ,CACrB,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC,CAC3D;IACD,MAAM,EAAE,MAAM,CAAC,QAAQ,CACrB,MAAM,CAAC,MAAM,CAAC;QACZ,OAAO,EAAE,MAAM,CAAC,QAAQ,CACtB,MAAM,CAAC,KAAK,CACV,MAAM,CAAC,MAAM,CAAC;YACZ,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;YACpC,IAAI,EAAE,MAAM,CAAC,QAAQ,CACnB,MAAM,CAAC,QAAQ,CAAC;gBACd,QAAQ;gBACR,OAAO;gBACP,QAAQ;gBACR,QAAQ;gBACR,QAAQ;gBACR,SAAS;gBACT,SAAS;gBACT,MAAM;gBACN,OAAO;gBACP,OAAO;gBACP,OAAO;gBACP,QAAQ;gBACR,QAAQ;gBACR,SAAS;gBACT,SAAS;gBACT,MAAM;gBACN,MAAM;gBACN,UAAU;gBACV,YAAY;gBACZ,MAAM;aACP,CAAC,CACH;SACF,CAAC,CACH,CACF;KACF,CAAC,CACH;IACD,QAAQ,EAAE,MAAM,CAAC,QAAQ,CACvB,MAAM,CAAC,MAAM,CAAC;QACZ,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;QACvC,kBAAkB,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QAClD,eAAe,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QAC/C,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;KACzC,CAAC,CACH;CACF,CAAC,CAAC;AAGH,gBAAgB;AAChB;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACrE,WAAW,EAAE,gBAAgB;IAC7B,YAAY,EAAE,iBAAiB;CAChC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const SendEvmTransactionInput: Schema.Struct<{
|
|
3
|
+
readonly address: Schema.String;
|
|
4
|
+
readonly network: Schema.Literals<readonly ["base", "base-sepolia", "ethereum", "ethereum-sepolia", "avalanche", "polygon", "optimism", "arbitrum"]>;
|
|
5
|
+
readonly transaction: Schema.String;
|
|
6
|
+
}>;
|
|
7
|
+
export type SendEvmTransactionInput = typeof SendEvmTransactionInput.Type;
|
|
8
|
+
export declare const SendEvmTransactionOutput: Schema.Struct<{
|
|
9
|
+
readonly transactionHash: Schema.String;
|
|
10
|
+
}>;
|
|
11
|
+
export type SendEvmTransactionOutput = typeof SendEvmTransactionOutput.Type;
|
|
12
|
+
/**
|
|
13
|
+
* Send a transaction
|
|
14
|
+
*
|
|
15
|
+
* Signs a transaction with the given EVM account and sends it to the indicated supported network. This API handles nonce management and gas estimation, leaving the developer to provide only the minimal set of fields necessary to send the transaction. The transaction should be serialized as a hex string using [RLP](https://ethereum.org/en/developers/docs/data-structures-and-encoding/rlp/).
|
|
16
|
+
* The transaction must be an [EIP-1559 dynamic fee transaction](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1559.md).
|
|
17
|
+
* **Transaction fields and API behavior**
|
|
18
|
+
* - `to` *(Required)*: The address of the contract or account to send the transaction to.
|
|
19
|
+
* - `chainId` *(Ignored)*: The value of the `chainId` field in the transaction is ignored.
|
|
20
|
+
* The transaction will be sent to the network indicated by the `network` field in the request body.
|
|
21
|
+
* - `nonce` *(Optional)*: The nonce to use for the transaction. If not provided, the API will assign
|
|
22
|
+
* a nonce to the transaction based on the current state of the account.
|
|
23
|
+
* - `maxPriorityFeePerGas` *(Optional)*: The maximum priority fee per gas to use for the transaction.
|
|
24
|
+
* If not provided, the API will estimate a value based on current network conditions.
|
|
25
|
+
* - `maxFeePerGas` *(Optional)*: The maximum fee per gas to use for the transaction.
|
|
26
|
+
* If not provided, the API will estimate a value based on current network conditions.
|
|
27
|
+
* - `gasLimit` *(Optional)*: The gas limit to use for the transaction. If not provided, the API will estimate a value
|
|
28
|
+
* based on the `to` and `data` fields of the transaction.
|
|
29
|
+
* - `value` *(Optional)*: The amount of ETH, in wei, to send with the transaction.
|
|
30
|
+
* - `data` *(Optional)*: The data to send with the transaction; only used for contract calls.
|
|
31
|
+
* - `accessList` *(Optional)*: The access list to use for the transaction.
|
|
32
|
+
*
|
|
33
|
+
* @param X-Wallet-Auth - A JWT signed using your Wallet Secret, encoded in base64. Refer to the
|
|
34
|
+
[Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
|
|
35
|
+
section of our Authentication docs for more details on how to generate your Wallet Token.
|
|
36
|
+
|
|
37
|
+
* @param X-Idempotency-Key - An optional string request header for making requests safely retryable.
|
|
38
|
+
When included, duplicate requests with the same key will return identical responses.
|
|
39
|
+
Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys.
|
|
40
|
+
|
|
41
|
+
* @param address - The 0x-prefixed address of the Ethereum account.
|
|
42
|
+
*/
|
|
43
|
+
export declare const sendEvmTransaction: any;
|
|
44
|
+
//# sourceMappingURL=sendEvmTransaction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sendEvmTransaction.d.ts","sourceRoot":"","sources":["../../src/operations/sendEvmTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,uBAAuB;;;;EAmBjC,CAAC;AACJ,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAC,IAAI,CAAC;AAG1E,eAAO,MAAM,wBAAwB;;EAGjC,CAAC;AACL,MAAM,MAAM,wBAAwB,GAAG,OAAO,wBAAwB,CAAC,IAAI,CAAC;AAG5E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,eAAO,MAAM,kBAAkB,KAG5B,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const SendEvmTransactionInput =
|
|
6
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
address: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
network: Schema.Literals([
|
|
9
|
+
"base",
|
|
10
|
+
"base-sepolia",
|
|
11
|
+
"ethereum",
|
|
12
|
+
"ethereum-sepolia",
|
|
13
|
+
"avalanche",
|
|
14
|
+
"polygon",
|
|
15
|
+
"optimism",
|
|
16
|
+
"arbitrum",
|
|
17
|
+
]),
|
|
18
|
+
transaction: Schema.String,
|
|
19
|
+
}).pipe(T.Http({
|
|
20
|
+
method: "POST",
|
|
21
|
+
path: "/v2/evm/accounts/{address}/send/transaction",
|
|
22
|
+
}));
|
|
23
|
+
// Output Schema
|
|
24
|
+
export const SendEvmTransactionOutput =
|
|
25
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
26
|
+
transactionHash: Schema.String,
|
|
27
|
+
});
|
|
28
|
+
// The operation
|
|
29
|
+
/**
|
|
30
|
+
* Send a transaction
|
|
31
|
+
*
|
|
32
|
+
* Signs a transaction with the given EVM account and sends it to the indicated supported network. This API handles nonce management and gas estimation, leaving the developer to provide only the minimal set of fields necessary to send the transaction. The transaction should be serialized as a hex string using [RLP](https://ethereum.org/en/developers/docs/data-structures-and-encoding/rlp/).
|
|
33
|
+
* The transaction must be an [EIP-1559 dynamic fee transaction](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1559.md).
|
|
34
|
+
* **Transaction fields and API behavior**
|
|
35
|
+
* - `to` *(Required)*: The address of the contract or account to send the transaction to.
|
|
36
|
+
* - `chainId` *(Ignored)*: The value of the `chainId` field in the transaction is ignored.
|
|
37
|
+
* The transaction will be sent to the network indicated by the `network` field in the request body.
|
|
38
|
+
* - `nonce` *(Optional)*: The nonce to use for the transaction. If not provided, the API will assign
|
|
39
|
+
* a nonce to the transaction based on the current state of the account.
|
|
40
|
+
* - `maxPriorityFeePerGas` *(Optional)*: The maximum priority fee per gas to use for the transaction.
|
|
41
|
+
* If not provided, the API will estimate a value based on current network conditions.
|
|
42
|
+
* - `maxFeePerGas` *(Optional)*: The maximum fee per gas to use for the transaction.
|
|
43
|
+
* If not provided, the API will estimate a value based on current network conditions.
|
|
44
|
+
* - `gasLimit` *(Optional)*: The gas limit to use for the transaction. If not provided, the API will estimate a value
|
|
45
|
+
* based on the `to` and `data` fields of the transaction.
|
|
46
|
+
* - `value` *(Optional)*: The amount of ETH, in wei, to send with the transaction.
|
|
47
|
+
* - `data` *(Optional)*: The data to send with the transaction; only used for contract calls.
|
|
48
|
+
* - `accessList` *(Optional)*: The access list to use for the transaction.
|
|
49
|
+
*
|
|
50
|
+
* @param X-Wallet-Auth - A JWT signed using your Wallet Secret, encoded in base64. Refer to the
|
|
51
|
+
[Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
|
|
52
|
+
section of our Authentication docs for more details on how to generate your Wallet Token.
|
|
53
|
+
|
|
54
|
+
* @param X-Idempotency-Key - An optional string request header for making requests safely retryable.
|
|
55
|
+
When included, duplicate requests with the same key will return identical responses.
|
|
56
|
+
Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys.
|
|
57
|
+
|
|
58
|
+
* @param address - The 0x-prefixed address of the Ethereum account.
|
|
59
|
+
*/
|
|
60
|
+
export const sendEvmTransaction = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
61
|
+
inputSchema: SendEvmTransactionInput,
|
|
62
|
+
outputSchema: SendEvmTransactionOutput,
|
|
63
|
+
}));
|
|
64
|
+
//# sourceMappingURL=sendEvmTransaction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sendEvmTransaction.js","sourceRoot":"","sources":["../../src/operations/sendEvmTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,CAAC,MAAM,WAAW,CAAC;AAE/B,eAAe;AACf,MAAM,CAAC,MAAM,uBAAuB;AAClC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IAC1C,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC;QACvB,MAAM;QACN,cAAc;QACd,UAAU;QACV,kBAAkB;QAClB,WAAW;QACX,SAAS;QACT,UAAU;QACV,UAAU;KACX,CAAC;IACF,WAAW,EAAE,MAAM,CAAC,MAAM;CAC3B,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,6CAA6C;CACpD,CAAC,CACH,CAAC;AAGJ,gBAAgB;AAChB,MAAM,CAAC,MAAM,wBAAwB;AACnC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,eAAe,EAAE,MAAM,CAAC,MAAM;CAC/B,CAAC,CAAC;AAGL,gBAAgB;AAChB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC5E,WAAW,EAAE,uBAAuB;IACpC,YAAY,EAAE,wBAAwB;CACvC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const SendSolanaTransactionInput: Schema.Struct<{
|
|
3
|
+
readonly network: Schema.Literals<readonly ["solana", "solana-devnet"]>;
|
|
4
|
+
readonly transaction: Schema.String;
|
|
5
|
+
}>;
|
|
6
|
+
export type SendSolanaTransactionInput = typeof SendSolanaTransactionInput.Type;
|
|
7
|
+
export declare const SendSolanaTransactionOutput: Schema.Struct<{
|
|
8
|
+
readonly transactionSignature: Schema.String;
|
|
9
|
+
}>;
|
|
10
|
+
export type SendSolanaTransactionOutput = typeof SendSolanaTransactionOutput.Type;
|
|
11
|
+
/**
|
|
12
|
+
* Send a Solana transaction
|
|
13
|
+
*
|
|
14
|
+
* Signs and sends a single Solana transaction using multiple Solana accounts. The transaction may contain contain several instructions, each of which may require signatures from different account keys.
|
|
15
|
+
* The transaction should be serialized into a byte array and base64 encoded. The API handles recent blockhash management and fee estimation, leaving the developer to provide only the minimal set of fields necessary to send the transaction.
|
|
16
|
+
* **Transaction types**
|
|
17
|
+
* The following transaction types are supported:
|
|
18
|
+
* * [Legacy transactions](https://solana.com/developers/guides/advanced/versions#current-transaction-versions)
|
|
19
|
+
* * [Versioned transactions](https://solana.com/developers/guides/advanced/versions)
|
|
20
|
+
* **Instruction Batching**
|
|
21
|
+
* To batch multiple operations, include multiple instructions within a single transaction. All instructions within a transaction are executed atomically - if any instruction fails, the entire transaction fails and is rolled back.
|
|
22
|
+
* **Network Support**
|
|
23
|
+
* The following Solana networks are supported:
|
|
24
|
+
* * `solana` - Solana Mainnet
|
|
25
|
+
* * `solana-devnet` - Solana Devnet
|
|
26
|
+
* The developer is responsible for ensuring that the unsigned transaction is valid, as the API will not validate the transaction.
|
|
27
|
+
*
|
|
28
|
+
* @param X-Wallet-Auth - A JWT signed using your Wallet Secret, encoded in base64. Refer to the
|
|
29
|
+
[Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
|
|
30
|
+
section of our Authentication docs for more details on how to generate your Wallet Token.
|
|
31
|
+
|
|
32
|
+
* @param X-Idempotency-Key - An optional string request header for making requests safely retryable.
|
|
33
|
+
When included, duplicate requests with the same key will return identical responses.
|
|
34
|
+
Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys.
|
|
35
|
+
|
|
36
|
+
*/
|
|
37
|
+
export declare const sendSolanaTransaction: any;
|
|
38
|
+
//# sourceMappingURL=sendSolanaTransaction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sendSolanaTransaction.d.ts","sourceRoot":"","sources":["../../src/operations/sendSolanaTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,0BAA0B;;;EAMpC,CAAC;AACJ,MAAM,MAAM,0BAA0B,GAAG,OAAO,0BAA0B,CAAC,IAAI,CAAC;AAGhF,eAAO,MAAM,2BAA2B;;EAGpC,CAAC;AACL,MAAM,MAAM,2BAA2B,GACrC,OAAO,2BAA2B,CAAC,IAAI,CAAC;AAG1C;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,qBAAqB,KAKjC,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const SendSolanaTransactionInput =
|
|
6
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
network: Schema.Literals(["solana", "solana-devnet"]),
|
|
8
|
+
transaction: Schema.String,
|
|
9
|
+
}).pipe(T.Http({ method: "POST", path: "/v2/solana/accounts/send/transaction" }));
|
|
10
|
+
// Output Schema
|
|
11
|
+
export const SendSolanaTransactionOutput =
|
|
12
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
13
|
+
transactionSignature: Schema.String,
|
|
14
|
+
});
|
|
15
|
+
// The operation
|
|
16
|
+
/**
|
|
17
|
+
* Send a Solana transaction
|
|
18
|
+
*
|
|
19
|
+
* Signs and sends a single Solana transaction using multiple Solana accounts. The transaction may contain contain several instructions, each of which may require signatures from different account keys.
|
|
20
|
+
* The transaction should be serialized into a byte array and base64 encoded. The API handles recent blockhash management and fee estimation, leaving the developer to provide only the minimal set of fields necessary to send the transaction.
|
|
21
|
+
* **Transaction types**
|
|
22
|
+
* The following transaction types are supported:
|
|
23
|
+
* * [Legacy transactions](https://solana.com/developers/guides/advanced/versions#current-transaction-versions)
|
|
24
|
+
* * [Versioned transactions](https://solana.com/developers/guides/advanced/versions)
|
|
25
|
+
* **Instruction Batching**
|
|
26
|
+
* To batch multiple operations, include multiple instructions within a single transaction. All instructions within a transaction are executed atomically - if any instruction fails, the entire transaction fails and is rolled back.
|
|
27
|
+
* **Network Support**
|
|
28
|
+
* The following Solana networks are supported:
|
|
29
|
+
* * `solana` - Solana Mainnet
|
|
30
|
+
* * `solana-devnet` - Solana Devnet
|
|
31
|
+
* The developer is responsible for ensuring that the unsigned transaction is valid, as the API will not validate the transaction.
|
|
32
|
+
*
|
|
33
|
+
* @param X-Wallet-Auth - A JWT signed using your Wallet Secret, encoded in base64. Refer to the
|
|
34
|
+
[Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
|
|
35
|
+
section of our Authentication docs for more details on how to generate your Wallet Token.
|
|
36
|
+
|
|
37
|
+
* @param X-Idempotency-Key - An optional string request header for making requests safely retryable.
|
|
38
|
+
When included, duplicate requests with the same key will return identical responses.
|
|
39
|
+
Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys.
|
|
40
|
+
|
|
41
|
+
*/
|
|
42
|
+
export const sendSolanaTransaction = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
43
|
+
inputSchema: SendSolanaTransactionInput,
|
|
44
|
+
outputSchema: SendSolanaTransactionOutput,
|
|
45
|
+
}));
|
|
46
|
+
//# sourceMappingURL=sendSolanaTransaction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sendSolanaTransaction.js","sourceRoot":"","sources":["../../src/operations/sendSolanaTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,CAAC,MAAM,WAAW,CAAC;AAE/B,eAAe;AACf,MAAM,CAAC,MAAM,0BAA0B;AACrC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,QAAQ,EAAE,eAAe,CAAC,CAAC;IACrD,WAAW,EAAE,MAAM,CAAC,MAAM;CAC3B,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,sCAAsC,EAAE,CAAC,CACzE,CAAC;AAGJ,gBAAgB;AAChB,MAAM,CAAC,MAAM,2BAA2B;AACtC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,oBAAoB,EAAE,MAAM,CAAC,MAAM;CACpC,CAAC,CAAC;AAIL,gBAAgB;AAChB;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CACvE,GAAG,EAAE,CAAC,CAAC;IACL,WAAW,EAAE,0BAA0B;IACvC,YAAY,EAAE,2BAA2B;CAC1C,CAAC,CACH,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const SendUserOperationInput: Schema.Struct<{
|
|
3
|
+
readonly address: Schema.String;
|
|
4
|
+
readonly userOpHash: Schema.String;
|
|
5
|
+
readonly signature: Schema.String;
|
|
6
|
+
}>;
|
|
7
|
+
export type SendUserOperationInput = typeof SendUserOperationInput.Type;
|
|
8
|
+
export declare const SendUserOperationOutput: Schema.Struct<{
|
|
9
|
+
readonly network: Schema.Literals<readonly ["base-sepolia", "base", "arbitrum", "optimism", "zora", "polygon", "bnb", "avalanche", "ethereum", "ethereum-sepolia"]>;
|
|
10
|
+
readonly userOpHash: Schema.String;
|
|
11
|
+
readonly calls: Schema.$Array<Schema.Struct<{
|
|
12
|
+
readonly to: Schema.String;
|
|
13
|
+
readonly value: Schema.String;
|
|
14
|
+
readonly data: Schema.String;
|
|
15
|
+
readonly overrideGasLimit: Schema.optional<Schema.String>;
|
|
16
|
+
}>>;
|
|
17
|
+
readonly status: Schema.Literals<readonly ["pending", "signed", "broadcast", "complete", "dropped", "failed"]>;
|
|
18
|
+
readonly transactionHash: Schema.optional<Schema.String>;
|
|
19
|
+
readonly receipts: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
20
|
+
readonly revert: Schema.optional<Schema.Struct<{
|
|
21
|
+
readonly data: Schema.String;
|
|
22
|
+
readonly message: Schema.String;
|
|
23
|
+
}>>;
|
|
24
|
+
readonly transactionHash: Schema.optional<Schema.String>;
|
|
25
|
+
readonly blockHash: Schema.optional<Schema.String>;
|
|
26
|
+
readonly blockNumber: Schema.optional<Schema.Number>;
|
|
27
|
+
readonly gasUsed: Schema.optional<Schema.String>;
|
|
28
|
+
}>>>;
|
|
29
|
+
}>;
|
|
30
|
+
export type SendUserOperationOutput = typeof SendUserOperationOutput.Type;
|
|
31
|
+
/**
|
|
32
|
+
* Send a user operation
|
|
33
|
+
*
|
|
34
|
+
* Sends a user operation with a signature.
|
|
35
|
+
* The payload to sign must be the `userOpHash` field of the user operation. This hash should be signed directly (not using `personal_sign` or EIP-191 message hashing).
|
|
36
|
+
* The signature must be 65 bytes in length, consisting of: - 32 bytes for the `r` value - 32 bytes for the `s` value - 1 byte for the `v` value (must be 27 or 28)
|
|
37
|
+
* If using the CDP Paymaster, the user operation must be signed and sent within 2 minutes of being prepared.
|
|
38
|
+
*
|
|
39
|
+
* @param address - The address of the Smart Account to send the user operation from.
|
|
40
|
+
* @param userOpHash - The hash of the user operation to send.
|
|
41
|
+
*/
|
|
42
|
+
export declare const sendUserOperation: any;
|
|
43
|
+
//# sourceMappingURL=sendUserOperation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sendUserOperation.d.ts","sourceRoot":"","sources":["../../src/operations/sendUserOperation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,sBAAsB;;;;EAWlC,CAAC;AACF,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAC,IAAI,CAAC;AAGxE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;EAgDhC,CAAC;AACL,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAC,IAAI,CAAC;AAG1E;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iBAAiB,KAG3B,CAAC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const SendUserOperationInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
6
|
+
address: Schema.String.pipe(T.PathParam()),
|
|
7
|
+
userOpHash: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
signature: Schema.String,
|
|
9
|
+
}).pipe(T.Http({
|
|
10
|
+
method: "POST",
|
|
11
|
+
path: "/v2/evm/smart-accounts/{address}/user-operations/{userOpHash}/send",
|
|
12
|
+
}));
|
|
13
|
+
// Output Schema
|
|
14
|
+
export const SendUserOperationOutput =
|
|
15
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
16
|
+
network: Schema.Literals([
|
|
17
|
+
"base-sepolia",
|
|
18
|
+
"base",
|
|
19
|
+
"arbitrum",
|
|
20
|
+
"optimism",
|
|
21
|
+
"zora",
|
|
22
|
+
"polygon",
|
|
23
|
+
"bnb",
|
|
24
|
+
"avalanche",
|
|
25
|
+
"ethereum",
|
|
26
|
+
"ethereum-sepolia",
|
|
27
|
+
]),
|
|
28
|
+
userOpHash: Schema.String,
|
|
29
|
+
calls: Schema.Array(Schema.Struct({
|
|
30
|
+
to: Schema.String,
|
|
31
|
+
value: Schema.String,
|
|
32
|
+
data: Schema.String,
|
|
33
|
+
overrideGasLimit: Schema.optional(Schema.String),
|
|
34
|
+
})),
|
|
35
|
+
status: Schema.Literals([
|
|
36
|
+
"pending",
|
|
37
|
+
"signed",
|
|
38
|
+
"broadcast",
|
|
39
|
+
"complete",
|
|
40
|
+
"dropped",
|
|
41
|
+
"failed",
|
|
42
|
+
]),
|
|
43
|
+
transactionHash: Schema.optional(Schema.String),
|
|
44
|
+
receipts: Schema.optional(Schema.Array(Schema.Struct({
|
|
45
|
+
revert: Schema.optional(Schema.Struct({
|
|
46
|
+
data: Schema.String,
|
|
47
|
+
message: Schema.String,
|
|
48
|
+
})),
|
|
49
|
+
transactionHash: Schema.optional(Schema.String),
|
|
50
|
+
blockHash: Schema.optional(Schema.String),
|
|
51
|
+
blockNumber: Schema.optional(Schema.Number),
|
|
52
|
+
gasUsed: Schema.optional(Schema.String),
|
|
53
|
+
}))),
|
|
54
|
+
});
|
|
55
|
+
// The operation
|
|
56
|
+
/**
|
|
57
|
+
* Send a user operation
|
|
58
|
+
*
|
|
59
|
+
* Sends a user operation with a signature.
|
|
60
|
+
* The payload to sign must be the `userOpHash` field of the user operation. This hash should be signed directly (not using `personal_sign` or EIP-191 message hashing).
|
|
61
|
+
* The signature must be 65 bytes in length, consisting of: - 32 bytes for the `r` value - 32 bytes for the `s` value - 1 byte for the `v` value (must be 27 or 28)
|
|
62
|
+
* If using the CDP Paymaster, the user operation must be signed and sent within 2 minutes of being prepared.
|
|
63
|
+
*
|
|
64
|
+
* @param address - The address of the Smart Account to send the user operation from.
|
|
65
|
+
* @param userOpHash - The hash of the user operation to send.
|
|
66
|
+
*/
|
|
67
|
+
export const sendUserOperation = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
68
|
+
inputSchema: SendUserOperationInput,
|
|
69
|
+
outputSchema: SendUserOperationOutput,
|
|
70
|
+
}));
|
|
71
|
+
//# sourceMappingURL=sendUserOperation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sendUserOperation.js","sourceRoot":"","sources":["../../src/operations/sendUserOperation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,CAAC,MAAM,WAAW,CAAC;AAE/B,eAAe;AACf,MAAM,CAAC,MAAM,sBAAsB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAC7E;IACE,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IAC1C,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IAC7C,SAAS,EAAE,MAAM,CAAC,MAAM;CACzB,CACF,CAAC,IAAI,CACJ,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,oEAAoE;CAC3E,CAAC,CACH,CAAC;AAGF,gBAAgB;AAChB,MAAM,CAAC,MAAM,uBAAuB;AAClC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC;QACvB,cAAc;QACd,MAAM;QACN,UAAU;QACV,UAAU;QACV,MAAM;QACN,SAAS;QACT,KAAK;QACL,WAAW;QACX,UAAU;QACV,kBAAkB;KACnB,CAAC;IACF,UAAU,EAAE,MAAM,CAAC,MAAM;IACzB,KAAK,EAAE,MAAM,CAAC,KAAK,CACjB,MAAM,CAAC,MAAM,CAAC;QACZ,EAAE,EAAE,MAAM,CAAC,MAAM;QACjB,KAAK,EAAE,MAAM,CAAC,MAAM;QACpB,IAAI,EAAE,MAAM,CAAC,MAAM;QACnB,gBAAgB,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;KACjD,CAAC,CACH;IACD,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC;QACtB,SAAS;QACT,QAAQ;QACR,WAAW;QACX,UAAU;QACV,SAAS;QACT,QAAQ;KACT,CAAC;IACF,eAAe,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IAC/C,QAAQ,EAAE,MAAM,CAAC,QAAQ,CACvB,MAAM,CAAC,KAAK,CACV,MAAM,CAAC,MAAM,CAAC;QACZ,MAAM,EAAE,MAAM,CAAC,QAAQ,CACrB,MAAM,CAAC,MAAM,CAAC;YACZ,IAAI,EAAE,MAAM,CAAC,MAAM;YACnB,OAAO,EAAE,MAAM,CAAC,MAAM;SACvB,CAAC,CACH;QACD,eAAe,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QAC/C,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACzC,WAAW,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QAC3C,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;KACxC,CAAC,CACH,CACF;CACF,CAAC,CAAC;AAGL,gBAAgB;AAChB;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC3E,WAAW,EAAE,sBAAsB;IACnC,YAAY,EAAE,uBAAuB;CACtC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const SettleX402PaymentInput: Schema.Struct<{
|
|
3
|
+
readonly x402Version: Schema.Literals<readonly ["1", "2"]>;
|
|
4
|
+
readonly paymentPayload: Schema.Unknown;
|
|
5
|
+
readonly paymentRequirements: Schema.Unknown;
|
|
6
|
+
}>;
|
|
7
|
+
export type SettleX402PaymentInput = typeof SettleX402PaymentInput.Type;
|
|
8
|
+
export declare const SettleX402PaymentOutput: Schema.Struct<{
|
|
9
|
+
readonly success: Schema.Boolean;
|
|
10
|
+
readonly errorReason: Schema.optional<Schema.Literals<readonly ["insufficient_funds", "invalid_scheme", "invalid_network", "invalid_x402_version", "invalid_payment_requirements", "invalid_payload", "invalid_exact_evm_payload_authorization_value", "invalid_exact_evm_payload_authorization_value_too_low", "invalid_exact_evm_payload_authorization_valid_after", "invalid_exact_evm_payload_authorization_valid_before", "invalid_exact_evm_payload_authorization_typed_data_message", "invalid_exact_evm_payload_authorization_from_address_kyt", "invalid_exact_evm_payload_authorization_to_address_kyt", "invalid_exact_evm_payload_signature", "invalid_exact_evm_payload_signature_address", "invalid_exact_evm_permit2_payload_allowance_required", "invalid_exact_evm_permit2_payload_signature", "invalid_exact_evm_permit2_payload_deadline", "invalid_exact_evm_permit2_payload_valid_after", "invalid_exact_evm_permit2_payload_spender", "invalid_exact_evm_permit2_payload_recipient", "invalid_exact_evm_permit2_payload_amount", "invalid_exact_svm_payload_transaction", "invalid_exact_svm_payload_transaction_amount_mismatch", "invalid_exact_svm_payload_transaction_create_ata_instruction", "invalid_exact_svm_payload_transaction_create_ata_instruction_incorrect_payee", "invalid_exact_svm_payload_transaction_create_ata_instruction_incorrect_asset", "invalid_exact_svm_payload_transaction_instructions", "invalid_exact_svm_payload_transaction_instructions_length", "invalid_exact_svm_payload_transaction_instructions_compute_limit_instruction", "invalid_exact_svm_payload_transaction_instructions_compute_price_instruction", "invalid_exact_svm_payload_transaction_instructions_compute_price_instruction_too_high", "invalid_exact_svm_payload_transaction_instruction_not_spl_token_transfer_checked", "invalid_exact_svm_payload_transaction_instruction_not_token_2022_transfer_checked", "invalid_exact_svm_payload_transaction_not_a_transfer_instruction", "invalid_exact_svm_payload_transaction_cannot_derive_receiver_ata", "invalid_exact_svm_payload_transaction_receiver_ata_not_found", "invalid_exact_svm_payload_transaction_sender_ata_not_found", "invalid_exact_svm_payload_transaction_simulation_failed", "invalid_exact_svm_payload_transaction_transfer_to_incorrect_ata", "invalid_exact_svm_payload_transaction_fee_payer_included_in_instruction_accounts", "invalid_exact_svm_payload_transaction_fee_payer_transferring_funds", "settle_exact_evm_transaction_confirmation_timed_out", "settle_exact_node_failure", "settle_exact_failed_onchain", "settle_exact_svm_block_height_exceeded", "settle_exact_svm_transaction_confirmation_timed_out", "unknown_error"]>>;
|
|
11
|
+
readonly errorMessage: Schema.optional<Schema.String>;
|
|
12
|
+
readonly payer: Schema.String;
|
|
13
|
+
readonly transaction: Schema.String;
|
|
14
|
+
readonly network: Schema.String;
|
|
15
|
+
}>;
|
|
16
|
+
export type SettleX402PaymentOutput = typeof SettleX402PaymentOutput.Type;
|
|
17
|
+
/**
|
|
18
|
+
* Settle a payment
|
|
19
|
+
*
|
|
20
|
+
* Settle an x402 protocol payment with a specific scheme and network.
|
|
21
|
+
*/
|
|
22
|
+
export declare const settleX402Payment: any;
|
|
23
|
+
//# sourceMappingURL=settleX402Payment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settleX402Payment.d.ts","sourceRoot":"","sources":["../../src/operations/settleX402Payment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,sBAAsB;;;;EAMwB,CAAC;AAC5D,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAC,IAAI,CAAC;AAGxE,eAAO,MAAM,uBAAuB;;;;;;;EA2DhC,CAAC;AACL,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAC,IAAI,CAAC;AAG1E;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,KAG3B,CAAC"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const SettleX402PaymentInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
6
|
+
x402Version: Schema.Literals(["1", "2"]),
|
|
7
|
+
paymentPayload: Schema.Unknown,
|
|
8
|
+
paymentRequirements: Schema.Unknown,
|
|
9
|
+
}).pipe(T.Http({ method: "POST", path: "/v2/x402/settle" }));
|
|
10
|
+
// Output Schema
|
|
11
|
+
export const SettleX402PaymentOutput =
|
|
12
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
13
|
+
success: Schema.Boolean,
|
|
14
|
+
errorReason: Schema.optional(Schema.Literals([
|
|
15
|
+
"insufficient_funds",
|
|
16
|
+
"invalid_scheme",
|
|
17
|
+
"invalid_network",
|
|
18
|
+
"invalid_x402_version",
|
|
19
|
+
"invalid_payment_requirements",
|
|
20
|
+
"invalid_payload",
|
|
21
|
+
"invalid_exact_evm_payload_authorization_value",
|
|
22
|
+
"invalid_exact_evm_payload_authorization_value_too_low",
|
|
23
|
+
"invalid_exact_evm_payload_authorization_valid_after",
|
|
24
|
+
"invalid_exact_evm_payload_authorization_valid_before",
|
|
25
|
+
"invalid_exact_evm_payload_authorization_typed_data_message",
|
|
26
|
+
"invalid_exact_evm_payload_authorization_from_address_kyt",
|
|
27
|
+
"invalid_exact_evm_payload_authorization_to_address_kyt",
|
|
28
|
+
"invalid_exact_evm_payload_signature",
|
|
29
|
+
"invalid_exact_evm_payload_signature_address",
|
|
30
|
+
"invalid_exact_evm_permit2_payload_allowance_required",
|
|
31
|
+
"invalid_exact_evm_permit2_payload_signature",
|
|
32
|
+
"invalid_exact_evm_permit2_payload_deadline",
|
|
33
|
+
"invalid_exact_evm_permit2_payload_valid_after",
|
|
34
|
+
"invalid_exact_evm_permit2_payload_spender",
|
|
35
|
+
"invalid_exact_evm_permit2_payload_recipient",
|
|
36
|
+
"invalid_exact_evm_permit2_payload_amount",
|
|
37
|
+
"invalid_exact_svm_payload_transaction",
|
|
38
|
+
"invalid_exact_svm_payload_transaction_amount_mismatch",
|
|
39
|
+
"invalid_exact_svm_payload_transaction_create_ata_instruction",
|
|
40
|
+
"invalid_exact_svm_payload_transaction_create_ata_instruction_incorrect_payee",
|
|
41
|
+
"invalid_exact_svm_payload_transaction_create_ata_instruction_incorrect_asset",
|
|
42
|
+
"invalid_exact_svm_payload_transaction_instructions",
|
|
43
|
+
"invalid_exact_svm_payload_transaction_instructions_length",
|
|
44
|
+
"invalid_exact_svm_payload_transaction_instructions_compute_limit_instruction",
|
|
45
|
+
"invalid_exact_svm_payload_transaction_instructions_compute_price_instruction",
|
|
46
|
+
"invalid_exact_svm_payload_transaction_instructions_compute_price_instruction_too_high",
|
|
47
|
+
"invalid_exact_svm_payload_transaction_instruction_not_spl_token_transfer_checked",
|
|
48
|
+
"invalid_exact_svm_payload_transaction_instruction_not_token_2022_transfer_checked",
|
|
49
|
+
"invalid_exact_svm_payload_transaction_not_a_transfer_instruction",
|
|
50
|
+
"invalid_exact_svm_payload_transaction_cannot_derive_receiver_ata",
|
|
51
|
+
"invalid_exact_svm_payload_transaction_receiver_ata_not_found",
|
|
52
|
+
"invalid_exact_svm_payload_transaction_sender_ata_not_found",
|
|
53
|
+
"invalid_exact_svm_payload_transaction_simulation_failed",
|
|
54
|
+
"invalid_exact_svm_payload_transaction_transfer_to_incorrect_ata",
|
|
55
|
+
"invalid_exact_svm_payload_transaction_fee_payer_included_in_instruction_accounts",
|
|
56
|
+
"invalid_exact_svm_payload_transaction_fee_payer_transferring_funds",
|
|
57
|
+
"settle_exact_evm_transaction_confirmation_timed_out",
|
|
58
|
+
"settle_exact_node_failure",
|
|
59
|
+
"settle_exact_failed_onchain",
|
|
60
|
+
"settle_exact_svm_block_height_exceeded",
|
|
61
|
+
"settle_exact_svm_transaction_confirmation_timed_out",
|
|
62
|
+
"unknown_error",
|
|
63
|
+
])),
|
|
64
|
+
errorMessage: Schema.optional(Schema.String),
|
|
65
|
+
payer: Schema.String,
|
|
66
|
+
transaction: Schema.String,
|
|
67
|
+
network: Schema.String,
|
|
68
|
+
});
|
|
69
|
+
// The operation
|
|
70
|
+
/**
|
|
71
|
+
* Settle a payment
|
|
72
|
+
*
|
|
73
|
+
* Settle an x402 protocol payment with a specific scheme and network.
|
|
74
|
+
*/
|
|
75
|
+
export const settleX402Payment = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
76
|
+
inputSchema: SettleX402PaymentInput,
|
|
77
|
+
outputSchema: SettleX402PaymentOutput,
|
|
78
|
+
}));
|
|
79
|
+
//# sourceMappingURL=settleX402Payment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settleX402Payment.js","sourceRoot":"","sources":["../../src/operations/settleX402Payment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,CAAC,MAAM,WAAW,CAAC;AAE/B,eAAe;AACf,MAAM,CAAC,MAAM,sBAAsB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAC7E;IACE,WAAW,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IACxC,cAAc,EAAE,MAAM,CAAC,OAAO;IAC9B,mBAAmB,EAAE,MAAM,CAAC,OAAO;CACpC,CACF,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC,CAAC,CAAC;AAG5D,gBAAgB;AAChB,MAAM,CAAC,MAAM,uBAAuB;AAClC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,OAAO,EAAE,MAAM,CAAC,OAAO;IACvB,WAAW,EAAE,MAAM,CAAC,QAAQ,CAC1B,MAAM,CAAC,QAAQ,CAAC;QACd,oBAAoB;QACpB,gBAAgB;QAChB,iBAAiB;QACjB,sBAAsB;QACtB,8BAA8B;QAC9B,iBAAiB;QACjB,+CAA+C;QAC/C,uDAAuD;QACvD,qDAAqD;QACrD,sDAAsD;QACtD,4DAA4D;QAC5D,0DAA0D;QAC1D,wDAAwD;QACxD,qCAAqC;QACrC,6CAA6C;QAC7C,sDAAsD;QACtD,6CAA6C;QAC7C,4CAA4C;QAC5C,+CAA+C;QAC/C,2CAA2C;QAC3C,6CAA6C;QAC7C,0CAA0C;QAC1C,uCAAuC;QACvC,uDAAuD;QACvD,8DAA8D;QAC9D,8EAA8E;QAC9E,8EAA8E;QAC9E,oDAAoD;QACpD,2DAA2D;QAC3D,8EAA8E;QAC9E,8EAA8E;QAC9E,uFAAuF;QACvF,kFAAkF;QAClF,mFAAmF;QACnF,kEAAkE;QAClE,kEAAkE;QAClE,8DAA8D;QAC9D,4DAA4D;QAC5D,yDAAyD;QACzD,iEAAiE;QACjE,kFAAkF;QAClF,oEAAoE;QACpE,qDAAqD;QACrD,2BAA2B;QAC3B,6BAA6B;QAC7B,wCAAwC;QACxC,qDAAqD;QACrD,eAAe;KAChB,CAAC,CACH;IACD,YAAY,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IAC5C,KAAK,EAAE,MAAM,CAAC,MAAM;IACpB,WAAW,EAAE,MAAM,CAAC,MAAM;IAC1B,OAAO,EAAE,MAAM,CAAC,MAAM;CACvB,CAAC,CAAC;AAGL,gBAAgB;AAChB;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC3E,WAAW,EAAE,sBAAsB;IACnC,YAAY,EAAE,uBAAuB;CACtC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const SignEvmHashInput: Schema.Struct<{
|
|
3
|
+
readonly address: Schema.String;
|
|
4
|
+
readonly hash: Schema.String;
|
|
5
|
+
}>;
|
|
6
|
+
export type SignEvmHashInput = typeof SignEvmHashInput.Type;
|
|
7
|
+
export declare const SignEvmHashOutput: Schema.Struct<{
|
|
8
|
+
readonly signature: Schema.String;
|
|
9
|
+
}>;
|
|
10
|
+
export type SignEvmHashOutput = typeof SignEvmHashOutput.Type;
|
|
11
|
+
/**
|
|
12
|
+
* Sign a hash
|
|
13
|
+
*
|
|
14
|
+
* Signs an arbitrary 32 byte hash with the given EVM account.
|
|
15
|
+
*
|
|
16
|
+
* @param X-Wallet-Auth - A JWT signed using your Wallet Secret, encoded in base64. Refer to the
|
|
17
|
+
[Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
|
|
18
|
+
section of our Authentication docs for more details on how to generate your Wallet Token.
|
|
19
|
+
|
|
20
|
+
* @param X-Idempotency-Key - An optional string request header for making requests safely retryable.
|
|
21
|
+
When included, duplicate requests with the same key will return identical responses.
|
|
22
|
+
Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys.
|
|
23
|
+
|
|
24
|
+
* @param address - The 0x-prefixed address of the EVM account.
|
|
25
|
+
*/
|
|
26
|
+
export declare const signEvmHash: any;
|
|
27
|
+
//# sourceMappingURL=signEvmHash.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signEvmHash.d.ts","sourceRoot":"","sources":["../../src/operations/signEvmHash.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,gBAAgB;;;EAG+C,CAAC;AAC7E,MAAM,MAAM,gBAAgB,GAAG,OAAO,gBAAgB,CAAC,IAAI,CAAC;AAG5D,eAAO,MAAM,iBAAiB;;EAE5B,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAC,IAAI,CAAC;AAG9D;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,WAAW,KAGrB,CAAC"}
|