@coinbase/cdp-sdk 1.44.1 → 1.46.0
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/CHANGELOG.md +28 -2
- package/README.md +164 -43
- package/_cjs/accounts/evm/eip6492.js +49 -0
- package/_cjs/accounts/evm/eip6492.js.map +1 -0
- package/_cjs/accounts/evm/toEvmDelegatedAccount.js +27 -0
- package/_cjs/accounts/evm/toEvmDelegatedAccount.js.map +1 -0
- package/_cjs/accounts/evm/toEvmServerAccount.js +127 -55
- package/_cjs/accounts/evm/toEvmServerAccount.js.map +1 -1
- package/_cjs/accounts/evm/toEvmSmartAccount.js +115 -45
- package/_cjs/accounts/evm/toEvmSmartAccount.js.map +1 -1
- package/_cjs/accounts/evm/toNetworkScopedEvmSmartAccount.js +31 -0
- package/_cjs/accounts/evm/toNetworkScopedEvmSmartAccount.js.map +1 -1
- package/_cjs/accounts/solana/toSolanaAccount.js +49 -19
- package/_cjs/accounts/solana/toSolanaAccount.js.map +1 -1
- package/_cjs/actions/evm/waitForEvmEip7702DelegationStatus.js +37 -0
- package/_cjs/actions/evm/waitForEvmEip7702DelegationStatus.js.map +1 -0
- package/_cjs/actions/solana/transfer.js.map +1 -1
- package/_cjs/actions/solana/utils.js +9 -9
- package/_cjs/actions/solana/utils.js.map +1 -1
- package/_cjs/analytics.js +10 -228
- package/_cjs/analytics.js.map +1 -1
- package/_cjs/auth/utils/http.js +1 -0
- package/_cjs/auth/utils/http.js.map +1 -1
- package/_cjs/client/cdp.js +4 -7
- package/_cjs/client/cdp.js.map +1 -1
- package/_cjs/client/end-user/endUser.js +385 -4
- package/_cjs/client/end-user/endUser.js.map +1 -1
- package/_cjs/client/end-user/toEndUserAccount.js +201 -23
- package/_cjs/client/end-user/toEndUserAccount.js.map +1 -1
- package/_cjs/client/evm/evm.js +482 -227
- package/_cjs/client/evm/evm.js.map +1 -1
- package/_cjs/client/policies/policies.js +41 -11
- package/_cjs/client/policies/policies.js.map +1 -1
- package/_cjs/client/solana/solana.js +215 -118
- package/_cjs/client/solana/solana.js.map +1 -1
- package/_cjs/index.js +3 -1
- package/_cjs/index.js.map +1 -1
- package/_cjs/openapi-client/cdpApiClient.js +32 -0
- package/_cjs/openapi-client/cdpApiClient.js.map +1 -1
- package/_cjs/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +178 -9
- package/_cjs/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js.map +1 -1
- package/_cjs/openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.js +261 -0
- package/_cjs/openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.js.map +1 -0
- package/_cjs/openapi-client/generated/end-user-accounts/end-user-accounts.js.map +1 -1
- package/_cjs/openapi-client/generated/evm-accounts/evm-accounts.js +30 -1
- package/_cjs/openapi-client/generated/evm-accounts/evm-accounts.js.map +1 -1
- package/_cjs/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js +2 -2
- package/_cjs/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js.map +1 -1
- package/_cjs/openapi-client/generated/evm-swaps/evm-swaps.js.map +1 -1
- package/_cjs/openapi-client/generated/evm-token-balances/evm-token-balances.js.map +1 -1
- package/_cjs/openapi-client/generated/faucets/faucets.js +6 -5
- package/_cjs/openapi-client/generated/faucets/faucets.js.map +1 -1
- package/_cjs/openapi-client/generated/onchain-data/onchain-data.js.map +1 -1
- package/_cjs/openapi-client/generated/onramp/onramp.js +15 -1
- package/_cjs/openapi-client/generated/onramp/onramp.js.map +1 -1
- package/_cjs/openapi-client/generated/policy-engine/policy-engine.js.map +1 -1
- package/_cjs/openapi-client/generated/solana-accounts/solana-accounts.js.map +1 -1
- package/_cjs/openapi-client/generated/solana-token-balances/solana-token-balances.js.map +1 -1
- package/_cjs/openapi-client/generated/sql-api/sql-api.js +75 -0
- package/_cjs/openapi-client/generated/sql-api/sql-api.js.map +1 -0
- package/_cjs/openapi-client/generated/webhooks/webhooks.js.map +1 -1
- package/_cjs/openapi-client/generated/x402-facilitator/x402-facilitator.js.map +1 -1
- package/_cjs/openapi-client/index.js +4 -1
- package/_cjs/openapi-client/index.js.map +1 -1
- package/_cjs/policies/evmSchema.js +127 -1
- package/_cjs/policies/evmSchema.js.map +1 -1
- package/_cjs/policies/solanaSchema.js +102 -1
- package/_cjs/policies/solanaSchema.js.map +1 -1
- package/_cjs/policies/types.js +7 -0
- package/_cjs/policies/types.js.map +1 -1
- package/_cjs/utils/export.js +6 -5
- package/_cjs/utils/export.js.map +1 -1
- package/_cjs/version.js +1 -1
- package/_esm/accounts/evm/eip6492.js +46 -0
- package/_esm/accounts/evm/eip6492.js.map +1 -0
- package/_esm/accounts/evm/toEvmDelegatedAccount.js +24 -0
- package/_esm/accounts/evm/toEvmDelegatedAccount.js.map +1 -0
- package/_esm/accounts/evm/toEvmServerAccount.js +127 -55
- package/_esm/accounts/evm/toEvmServerAccount.js.map +1 -1
- package/_esm/accounts/evm/toEvmSmartAccount.js +115 -45
- package/_esm/accounts/evm/toEvmSmartAccount.js.map +1 -1
- package/_esm/accounts/evm/toNetworkScopedEvmSmartAccount.js +31 -0
- package/_esm/accounts/evm/toNetworkScopedEvmSmartAccount.js.map +1 -1
- package/_esm/accounts/solana/toSolanaAccount.js +49 -19
- package/_esm/accounts/solana/toSolanaAccount.js.map +1 -1
- package/_esm/actions/evm/waitForEvmEip7702DelegationStatus.js +34 -0
- package/_esm/actions/evm/waitForEvmEip7702DelegationStatus.js.map +1 -0
- package/_esm/actions/solana/transfer.js.map +1 -1
- package/_esm/actions/solana/utils.js +9 -9
- package/_esm/actions/solana/utils.js.map +1 -1
- package/_esm/analytics.js +9 -227
- package/_esm/analytics.js.map +1 -1
- package/_esm/auth/utils/http.js +1 -0
- package/_esm/auth/utils/http.js.map +1 -1
- package/_esm/client/cdp.js +4 -7
- package/_esm/client/cdp.js.map +1 -1
- package/_esm/client/end-user/endUser.js +385 -4
- package/_esm/client/end-user/endUser.js.map +1 -1
- package/_esm/client/end-user/toEndUserAccount.js +201 -23
- package/_esm/client/end-user/toEndUserAccount.js.map +1 -1
- package/_esm/client/evm/evm.js +482 -227
- package/_esm/client/evm/evm.js.map +1 -1
- package/_esm/client/policies/policies.js +41 -11
- package/_esm/client/policies/policies.js.map +1 -1
- package/_esm/client/solana/solana.js +215 -118
- package/_esm/client/solana/solana.js.map +1 -1
- package/_esm/index.js +1 -0
- package/_esm/index.js.map +1 -1
- package/_esm/openapi-client/cdpApiClient.js +32 -0
- package/_esm/openapi-client/cdpApiClient.js.map +1 -1
- package/_esm/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +175 -7
- package/_esm/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js.map +1 -1
- package/_esm/openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.js +243 -0
- package/_esm/openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.js.map +1 -0
- package/_esm/openapi-client/generated/end-user-accounts/end-user-accounts.js.map +1 -1
- package/_esm/openapi-client/generated/evm-accounts/evm-accounts.js +27 -0
- package/_esm/openapi-client/generated/evm-accounts/evm-accounts.js.map +1 -1
- package/_esm/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js +2 -2
- package/_esm/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js.map +1 -1
- package/_esm/openapi-client/generated/evm-swaps/evm-swaps.js.map +1 -1
- package/_esm/openapi-client/generated/evm-token-balances/evm-token-balances.js.map +1 -1
- package/_esm/openapi-client/generated/faucets/faucets.js +6 -5
- package/_esm/openapi-client/generated/faucets/faucets.js.map +1 -1
- package/_esm/openapi-client/generated/onchain-data/onchain-data.js.map +1 -1
- package/_esm/openapi-client/generated/onramp/onramp.js +13 -0
- package/_esm/openapi-client/generated/onramp/onramp.js.map +1 -1
- package/_esm/openapi-client/generated/policy-engine/policy-engine.js.map +1 -1
- package/_esm/openapi-client/generated/solana-accounts/solana-accounts.js.map +1 -1
- package/_esm/openapi-client/generated/solana-token-balances/solana-token-balances.js.map +1 -1
- package/_esm/openapi-client/generated/sql-api/sql-api.js +70 -0
- package/_esm/openapi-client/generated/sql-api/sql-api.js.map +1 -0
- package/_esm/openapi-client/generated/webhooks/webhooks.js.map +1 -1
- package/_esm/openapi-client/generated/x402-facilitator/x402-facilitator.js.map +1 -1
- package/_esm/openapi-client/index.js +4 -1
- package/_esm/openapi-client/index.js.map +1 -1
- package/_esm/policies/evmSchema.js +126 -0
- package/_esm/policies/evmSchema.js.map +1 -1
- package/_esm/policies/solanaSchema.js +101 -0
- package/_esm/policies/solanaSchema.js.map +1 -1
- package/_esm/policies/types.js +9 -2
- package/_esm/policies/types.js.map +1 -1
- package/_esm/utils/export.js +6 -5
- package/_esm/utils/export.js.map +1 -1
- package/_esm/version.js +1 -1
- package/_types/accounts/evm/eip6492.d.ts +17 -0
- package/_types/accounts/evm/eip6492.d.ts.map +1 -0
- package/_types/accounts/evm/toEvmDelegatedAccount.d.ts +13 -0
- package/_types/accounts/evm/toEvmDelegatedAccount.d.ts.map +1 -0
- package/_types/accounts/evm/toEvmServerAccount.d.ts.map +1 -1
- package/_types/accounts/evm/toEvmSmartAccount.d.ts.map +1 -1
- package/_types/accounts/evm/toNetworkScopedEvmSmartAccount.d.ts +4 -4
- package/_types/accounts/evm/toNetworkScopedEvmSmartAccount.d.ts.map +1 -1
- package/_types/accounts/evm/types.d.ts +3 -2
- package/_types/accounts/evm/types.d.ts.map +1 -1
- package/_types/accounts/solana/toSolanaAccount.d.ts.map +1 -1
- package/_types/actions/evm/waitForEvmEip7702DelegationStatus.d.ts +32 -0
- package/_types/actions/evm/waitForEvmEip7702DelegationStatus.d.ts.map +1 -0
- package/_types/actions/solana/transfer.d.ts +3 -4
- package/_types/actions/solana/transfer.d.ts.map +1 -1
- package/_types/actions/solana/types.d.ts +79 -29
- package/_types/actions/solana/types.d.ts.map +1 -1
- package/_types/actions/solana/utils.d.ts +10 -9
- package/_types/actions/solana/utils.d.ts.map +1 -1
- package/_types/analytics.d.ts +5 -38
- package/_types/analytics.d.ts.map +1 -1
- package/_types/auth/utils/http.d.ts.map +1 -1
- package/_types/client/cdp.d.ts +4 -0
- package/_types/client/cdp.d.ts.map +1 -1
- package/_types/client/end-user/endUser.d.ts +272 -1
- package/_types/client/end-user/endUser.d.ts.map +1 -1
- package/_types/client/end-user/endUser.types.d.ts +491 -1
- package/_types/client/end-user/endUser.types.d.ts.map +1 -1
- package/_types/client/end-user/toEndUserAccount.d.ts +4 -1
- package/_types/client/end-user/toEndUserAccount.d.ts.map +1 -1
- package/_types/client/evm/evm.d.ts +54 -1
- package/_types/client/evm/evm.d.ts.map +1 -1
- package/_types/client/evm/evm.types.d.ts +29 -2
- package/_types/client/evm/evm.types.d.ts.map +1 -1
- package/_types/client/policies/policies.d.ts.map +1 -1
- package/_types/client/solana/solana.d.ts +38 -12
- package/_types/client/solana/solana.d.ts.map +1 -1
- package/_types/index.d.ts +3 -1
- package/_types/index.d.ts.map +1 -1
- package/_types/openapi-client/cdpApiClient.d.ts.map +1 -1
- package/_types/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts +884 -90
- package/_types/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts.map +1 -1
- package/_types/openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.d.ts +163 -0
- package/_types/openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.d.ts.map +1 -0
- package/_types/openapi-client/generated/end-user-accounts/end-user-accounts.d.ts +9 -9
- package/_types/openapi-client/generated/end-user-accounts/end-user-accounts.d.ts.map +1 -1
- package/_types/openapi-client/generated/evm-accounts/evm-accounts.d.ts +35 -15
- package/_types/openapi-client/generated/evm-accounts/evm-accounts.d.ts.map +1 -1
- package/_types/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.d.ts +14 -14
- package/_types/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.d.ts.map +1 -1
- package/_types/openapi-client/generated/evm-swaps/evm-swaps.d.ts +3 -3
- package/_types/openapi-client/generated/evm-swaps/evm-swaps.d.ts.map +1 -1
- package/_types/openapi-client/generated/evm-token-balances/evm-token-balances.d.ts +2 -2
- package/_types/openapi-client/generated/evm-token-balances/evm-token-balances.d.ts.map +1 -1
- package/_types/openapi-client/generated/faucets/faucets.d.ts +9 -8
- package/_types/openapi-client/generated/faucets/faucets.d.ts.map +1 -1
- package/_types/openapi-client/generated/onchain-data/onchain-data.d.ts +3 -3
- package/_types/openapi-client/generated/onchain-data/onchain-data.d.ts.map +1 -1
- package/_types/openapi-client/generated/onramp/onramp.d.ts +12 -5
- package/_types/openapi-client/generated/onramp/onramp.d.ts.map +1 -1
- package/_types/openapi-client/generated/policy-engine/policy-engine.d.ts +6 -6
- package/_types/openapi-client/generated/policy-engine/policy-engine.d.ts.map +1 -1
- package/_types/openapi-client/generated/solana-accounts/solana-accounts.d.ts +12 -12
- package/_types/openapi-client/generated/solana-accounts/solana-accounts.d.ts.map +1 -1
- package/_types/openapi-client/generated/solana-token-balances/solana-token-balances.d.ts +2 -2
- package/_types/openapi-client/generated/solana-token-balances/solana-token-balances.d.ts.map +1 -1
- package/_types/openapi-client/generated/sql-api/sql-api.d.ts +73 -0
- package/_types/openapi-client/generated/sql-api/sql-api.d.ts.map +1 -0
- package/_types/openapi-client/generated/webhooks/webhooks.d.ts +6 -6
- package/_types/openapi-client/generated/webhooks/webhooks.d.ts.map +1 -1
- package/_types/openapi-client/generated/x402-facilitator/x402-facilitator.d.ts +4 -4
- package/_types/openapi-client/generated/x402-facilitator/x402-facilitator.d.ts.map +1 -1
- package/_types/openapi-client/index.d.ts +23 -3
- package/_types/openapi-client/index.d.ts.map +1 -1
- package/_types/policies/evmSchema.d.ts +3128 -1064
- package/_types/policies/evmSchema.d.ts.map +1 -1
- package/_types/policies/solanaSchema.d.ts +1411 -47
- package/_types/policies/solanaSchema.d.ts.map +1 -1
- package/_types/policies/types.d.ts +8427 -2942
- package/_types/policies/types.d.ts.map +1 -1
- package/_types/types/contract.d.ts.map +1 -1
- package/_types/utils/export.d.ts +1 -1
- package/_types/utils/export.d.ts.map +1 -1
- package/_types/version.d.ts +1 -1
- package/accounts/evm/eip6492.ts +60 -0
- package/accounts/evm/toEvmDelegatedAccount.ts +26 -0
- package/accounts/evm/toEvmServerAccount.ts +115 -67
- package/accounts/evm/toEvmSmartAccount.ts +114 -57
- package/accounts/evm/toNetworkScopedEvmSmartAccount.ts +44 -5
- package/accounts/evm/types.ts +8 -3
- package/accounts/solana/toSolanaAccount.ts +44 -24
- package/actions/evm/waitForEvmEip7702DelegationStatus.ts +57 -0
- package/actions/solana/transfer.ts +3 -3
- package/actions/solana/types.ts +79 -29
- package/actions/solana/utils.ts +13 -11
- package/analytics.ts +8 -294
- package/auth/utils/http.ts +1 -0
- package/client/cdp.ts +6 -8
- package/client/end-user/endUser.ts +513 -4
- package/client/end-user/endUser.types.ts +598 -0
- package/client/end-user/toEndUserAccount.ts +330 -26
- package/client/evm/evm.ts +517 -282
- package/client/evm/evm.types.ts +45 -2
- package/client/policies/policies.ts +41 -16
- package/client/solana/solana.ts +233 -153
- package/index.ts +36 -1
- package/openapi-client/cdpApiClient.ts +34 -0
- package/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.ts +1155 -172
- package/openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.ts +455 -0
- package/openapi-client/generated/end-user-accounts/end-user-accounts.ts +12 -9
- package/openapi-client/generated/evm-accounts/evm-accounts.ts +66 -14
- package/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.ts +16 -16
- package/openapi-client/generated/evm-swaps/evm-swaps.ts +3 -3
- package/openapi-client/generated/evm-token-balances/evm-token-balances.ts +2 -2
- package/openapi-client/generated/faucets/faucets.ts +9 -8
- package/openapi-client/generated/onchain-data/onchain-data.ts +3 -3
- package/openapi-client/generated/onramp/onramp.ts +28 -4
- package/openapi-client/generated/policy-engine/policy-engine.ts +12 -6
- package/openapi-client/generated/solana-accounts/solana-accounts.ts +12 -12
- package/openapi-client/generated/solana-token-balances/solana-token-balances.ts +2 -2
- package/openapi-client/generated/sql-api/sql-api.ts +92 -0
- package/openapi-client/generated/webhooks/webhooks.ts +6 -6
- package/openapi-client/generated/x402-facilitator/x402-facilitator.ts +6 -4
- package/openapi-client/index.ts +4 -1
- package/package.json +7 -8
- package/policies/evmSchema.ts +164 -0
- package/policies/solanaSchema.ts +130 -0
- package/policies/types.ts +14 -0
- package/types/contract.ts +2 -4
- package/utils/export.ts +6 -5
- package/version.ts +1 -1
- package/_cjs/openapi-client/generated/sql-api-alpha/sql-api-alpha.js +0 -55
- package/_cjs/openapi-client/generated/sql-api-alpha/sql-api-alpha.js.map +0 -1
- package/_esm/openapi-client/generated/sql-api-alpha/sql-api-alpha.js +0 -50
- package/_esm/openapi-client/generated/sql-api-alpha/sql-api-alpha.js.map +0 -1
- package/_types/openapi-client/generated/sql-api-alpha/sql-api-alpha.d.ts +0 -53
- package/_types/openapi-client/generated/sql-api-alpha/sql-api-alpha.d.ts.map +0 -1
- package/openapi-client/generated/sql-api-alpha/sql-api-alpha.ts +0 -72
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v7.
|
|
2
|
+
* Generated by orval v7.21.0 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Coinbase Developer Platform APIs
|
|
5
5
|
* The Coinbase Developer Platform APIs - leading the world's transition onchain.
|
|
6
6
|
* OpenAPI spec version: 2.0.0
|
|
7
7
|
*/
|
|
8
|
-
import type { CreateEvmAccountBody, EIP712Message, EvmAccount, ExportEvmAccount200, ExportEvmAccountBody, ExportEvmAccountByName200, ExportEvmAccountByNameBody, ImportEvmAccountBody, ListEvmAccounts200, ListEvmAccountsParams, SendEvmTransaction200, SendEvmTransactionBody, SignEvmHash200, SignEvmHashBody, SignEvmMessage200, SignEvmMessageBody, SignEvmTransaction200, SignEvmTransactionBody, SignEvmTypedData200, UpdateEvmAccountBody } from "../coinbaseDeveloperPlatformAPIs.schemas.js";
|
|
8
|
+
import type { CreateEvmAccountBody, CreateEvmEip7702Delegation201, CreateEvmEip7702DelegationBody, EIP712Message, EvmAccount, EvmEip7702DelegationOperation, ExportEvmAccount200, ExportEvmAccountBody, ExportEvmAccountByName200, ExportEvmAccountByNameBody, ImportEvmAccountBody, ListEvmAccounts200, ListEvmAccountsParams, SendEvmTransaction200, SendEvmTransactionBody, SignEvmHash200, SignEvmHashBody, SignEvmMessage200, SignEvmMessageBody, SignEvmTransaction200, SignEvmTransactionBody, SignEvmTypedData200, UpdateEvmAccountBody } from "../coinbaseDeveloperPlatformAPIs.schemas.js";
|
|
9
9
|
import { cdpApiClient } from "../../cdpApiClient.js";
|
|
10
10
|
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
11
11
|
/**
|
|
@@ -13,27 +13,27 @@ type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
|
13
13
|
The response is paginated, and by default, returns 20 accounts per page.
|
|
14
14
|
* @summary List EVM accounts
|
|
15
15
|
*/
|
|
16
|
-
export declare const listEvmAccounts: (params?: ListEvmAccountsParams, options?: SecondParameter<typeof cdpApiClient
|
|
16
|
+
export declare const listEvmAccounts: (params?: ListEvmAccountsParams, options?: SecondParameter<typeof cdpApiClient<ListEvmAccounts200>>) => Promise<ListEvmAccounts200>;
|
|
17
17
|
/**
|
|
18
18
|
* Creates a new EVM account.
|
|
19
19
|
* @summary Create an EVM account
|
|
20
20
|
*/
|
|
21
|
-
export declare const createEvmAccount: (createEvmAccountBody?: CreateEvmAccountBody, options?: SecondParameter<typeof cdpApiClient
|
|
21
|
+
export declare const createEvmAccount: (createEvmAccountBody?: CreateEvmAccountBody, options?: SecondParameter<typeof cdpApiClient<EvmAccount>>) => Promise<EvmAccount>;
|
|
22
22
|
/**
|
|
23
23
|
* Gets an EVM account by its address.
|
|
24
24
|
* @summary Get an EVM account by address
|
|
25
25
|
*/
|
|
26
|
-
export declare const getEvmAccount: (address: string, options?: SecondParameter<typeof cdpApiClient
|
|
26
|
+
export declare const getEvmAccount: (address: string, options?: SecondParameter<typeof cdpApiClient<EvmAccount>>) => Promise<EvmAccount>;
|
|
27
27
|
/**
|
|
28
28
|
* Updates an existing EVM account. Use this to update the account's name or account-level policy.
|
|
29
29
|
* @summary Update an EVM account
|
|
30
30
|
*/
|
|
31
|
-
export declare const updateEvmAccount: (address: string, updateEvmAccountBody: UpdateEvmAccountBody, options?: SecondParameter<typeof cdpApiClient
|
|
31
|
+
export declare const updateEvmAccount: (address: string, updateEvmAccountBody: UpdateEvmAccountBody, options?: SecondParameter<typeof cdpApiClient<EvmAccount>>) => Promise<EvmAccount>;
|
|
32
32
|
/**
|
|
33
33
|
* Gets an EVM account by its name.
|
|
34
34
|
* @summary Get an EVM account by name
|
|
35
35
|
*/
|
|
36
|
-
export declare const getEvmAccountByName: (name: string, options?: SecondParameter<typeof cdpApiClient
|
|
36
|
+
export declare const getEvmAccountByName: (name: string, options?: SecondParameter<typeof cdpApiClient<EvmAccount>>) => Promise<EvmAccount>;
|
|
37
37
|
/**
|
|
38
38
|
* 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/).
|
|
39
39
|
|
|
@@ -63,7 +63,7 @@ The transaction must be an [EIP-1559 dynamic fee transaction](https://github.com
|
|
|
63
63
|
- `accessList` *(Optional)*: The access list to use for the transaction.
|
|
64
64
|
* @summary Send a transaction
|
|
65
65
|
*/
|
|
66
|
-
export declare const sendEvmTransaction: (address: string, sendEvmTransactionBody: SendEvmTransactionBody, options?: SecondParameter<typeof cdpApiClient
|
|
66
|
+
export declare const sendEvmTransaction: (address: string, sendEvmTransactionBody: SendEvmTransactionBody, options?: SecondParameter<typeof cdpApiClient<SendEvmTransaction200>>) => Promise<SendEvmTransaction200>;
|
|
67
67
|
/**
|
|
68
68
|
* Signs a transaction with the given EVM account.
|
|
69
69
|
The transaction should be serialized as a hex string using [RLP](https://ethereum.org/en/developers/docs/data-structures-and-encoding/rlp/).
|
|
@@ -71,39 +71,57 @@ The transaction should be serialized as a hex string using [RLP](https://ethereu
|
|
|
71
71
|
The transaction must be an [EIP-1559 dynamic fee transaction](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1559.md). The developer is responsible for ensuring that the unsigned transaction is valid, as the API will not validate the transaction.
|
|
72
72
|
* @summary Sign a transaction
|
|
73
73
|
*/
|
|
74
|
-
export declare const signEvmTransaction: (address: string, signEvmTransactionBody: SignEvmTransactionBody, options?: SecondParameter<typeof cdpApiClient
|
|
74
|
+
export declare const signEvmTransaction: (address: string, signEvmTransactionBody: SignEvmTransactionBody, options?: SecondParameter<typeof cdpApiClient<SignEvmTransaction200>>) => Promise<SignEvmTransaction200>;
|
|
75
75
|
/**
|
|
76
76
|
* Signs an arbitrary 32 byte hash with the given EVM account.
|
|
77
77
|
* @summary Sign a hash
|
|
78
78
|
*/
|
|
79
|
-
export declare const signEvmHash: (address: string, signEvmHashBody: SignEvmHashBody, options?: SecondParameter<typeof cdpApiClient
|
|
79
|
+
export declare const signEvmHash: (address: string, signEvmHashBody: SignEvmHashBody, options?: SecondParameter<typeof cdpApiClient<SignEvmHash200>>) => Promise<SignEvmHash200>;
|
|
80
80
|
/**
|
|
81
81
|
* Signs an [EIP-191](https://eips.ethereum.org/EIPS/eip-191) message with the given EVM account.
|
|
82
82
|
|
|
83
83
|
Per the specification, the message in the request body is prepended with `0x19 <0x45 (E)> <thereum Signed Message:\n" + len(message)>` before being signed.
|
|
84
84
|
* @summary Sign an EIP-191 message
|
|
85
85
|
*/
|
|
86
|
-
export declare const signEvmMessage: (address: string, signEvmMessageBody: SignEvmMessageBody, options?: SecondParameter<typeof cdpApiClient
|
|
86
|
+
export declare const signEvmMessage: (address: string, signEvmMessageBody: SignEvmMessageBody, options?: SecondParameter<typeof cdpApiClient<SignEvmMessage200>>) => Promise<SignEvmMessage200>;
|
|
87
87
|
/**
|
|
88
88
|
* Signs [EIP-712](https://eips.ethereum.org/EIPS/eip-712) typed data with the given EVM account.
|
|
89
89
|
* @summary Sign EIP-712 typed data
|
|
90
90
|
*/
|
|
91
|
-
export declare const signEvmTypedData: (address: string, eIP712Message: EIP712Message, options?: SecondParameter<typeof cdpApiClient
|
|
91
|
+
export declare const signEvmTypedData: (address: string, eIP712Message: EIP712Message, options?: SecondParameter<typeof cdpApiClient<SignEvmTypedData200>>) => Promise<SignEvmTypedData200>;
|
|
92
|
+
/**
|
|
93
|
+
* Creates an EIP-7702 delegation for an EVM EOA account, upgrading it with smart account capabilities.
|
|
94
|
+
|
|
95
|
+
This endpoint:
|
|
96
|
+
- Retrieves delegation artifacts from onchain
|
|
97
|
+
- Signs the EIP-7702 authorization for delegation
|
|
98
|
+
- Assembles and submits a Type 4 transaction
|
|
99
|
+
- Creates an associated smart account object
|
|
100
|
+
|
|
101
|
+
The delegation allows the EVM EOA to be used as a smart account, which enables batched transactions and gas sponsorship via paymaster.
|
|
102
|
+
* @summary Create EIP-7702 delegation
|
|
103
|
+
*/
|
|
104
|
+
export declare const createEvmEip7702Delegation: (address: string, createEvmEip7702DelegationBody: CreateEvmEip7702DelegationBody, options?: SecondParameter<typeof cdpApiClient<CreateEvmEip7702Delegation201>>) => Promise<CreateEvmEip7702Delegation201>;
|
|
105
|
+
/**
|
|
106
|
+
* Returns the EIP-7702 delegation operation. Use the delegationOperationId returned by the Create EIP-7702 delegation endpoint to poll for operation completion.
|
|
107
|
+
* @summary Get EIP-7702 delegation operation for an operationID
|
|
108
|
+
*/
|
|
109
|
+
export declare const getEvmEip7702DelegationOperationById: (delegationOperationId: string, options?: SecondParameter<typeof cdpApiClient<EvmEip7702DelegationOperation>>) => Promise<EvmEip7702DelegationOperation>;
|
|
92
110
|
/**
|
|
93
111
|
* Import an existing EVM account into the developer's CDP Project. This API should be called from the [CDP SDK](https://github.com/coinbase/cdp-sdk) to ensure that the associated private key is properly encrypted.
|
|
94
112
|
* @summary Import an EVM account
|
|
95
113
|
*/
|
|
96
|
-
export declare const importEvmAccount: (importEvmAccountBody: ImportEvmAccountBody, options?: SecondParameter<typeof cdpApiClient
|
|
114
|
+
export declare const importEvmAccount: (importEvmAccountBody: ImportEvmAccountBody, options?: SecondParameter<typeof cdpApiClient<EvmAccount>>) => Promise<EvmAccount>;
|
|
97
115
|
/**
|
|
98
116
|
* Export an existing EVM account's private key. It is important to store the private key in a secure place after it's exported.
|
|
99
117
|
* @summary Export an EVM account
|
|
100
118
|
*/
|
|
101
|
-
export declare const exportEvmAccount: (address: string, exportEvmAccountBody: ExportEvmAccountBody, options?: SecondParameter<typeof cdpApiClient
|
|
119
|
+
export declare const exportEvmAccount: (address: string, exportEvmAccountBody: ExportEvmAccountBody, options?: SecondParameter<typeof cdpApiClient<ExportEvmAccount200>>) => Promise<ExportEvmAccount200>;
|
|
102
120
|
/**
|
|
103
121
|
* Export an existing EVM account's private key by its name. It is important to store the private key in a secure place after it's exported.
|
|
104
122
|
* @summary Export an EVM account by name
|
|
105
123
|
*/
|
|
106
|
-
export declare const exportEvmAccountByName: (name: string, exportEvmAccountByNameBody: ExportEvmAccountByNameBody, options?: SecondParameter<typeof cdpApiClient
|
|
124
|
+
export declare const exportEvmAccountByName: (name: string, exportEvmAccountByNameBody: ExportEvmAccountByNameBody, options?: SecondParameter<typeof cdpApiClient<ExportEvmAccountByName200>>) => Promise<ExportEvmAccountByName200>;
|
|
107
125
|
export type ListEvmAccountsResult = NonNullable<Awaited<ReturnType<typeof listEvmAccounts>>>;
|
|
108
126
|
export type CreateEvmAccountResult = NonNullable<Awaited<ReturnType<typeof createEvmAccount>>>;
|
|
109
127
|
export type GetEvmAccountResult = NonNullable<Awaited<ReturnType<typeof getEvmAccount>>>;
|
|
@@ -114,6 +132,8 @@ export type SignEvmTransactionResult = NonNullable<Awaited<ReturnType<typeof sig
|
|
|
114
132
|
export type SignEvmHashResult = NonNullable<Awaited<ReturnType<typeof signEvmHash>>>;
|
|
115
133
|
export type SignEvmMessageResult = NonNullable<Awaited<ReturnType<typeof signEvmMessage>>>;
|
|
116
134
|
export type SignEvmTypedDataResult = NonNullable<Awaited<ReturnType<typeof signEvmTypedData>>>;
|
|
135
|
+
export type CreateEvmEip7702DelegationResult = NonNullable<Awaited<ReturnType<typeof createEvmEip7702Delegation>>>;
|
|
136
|
+
export type GetEvmEip7702DelegationOperationByIdResult = NonNullable<Awaited<ReturnType<typeof getEvmEip7702DelegationOperationById>>>;
|
|
117
137
|
export type ImportEvmAccountResult = NonNullable<Awaited<ReturnType<typeof importEvmAccount>>>;
|
|
118
138
|
export type ExportEvmAccountResult = NonNullable<Awaited<ReturnType<typeof exportEvmAccount>>>;
|
|
119
139
|
export type ExportEvmAccountByNameResult = NonNullable<Awaited<ReturnType<typeof exportEvmAccountByName>>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"evm-accounts.d.ts","sourceRoot":"","sources":["../../../../openapi-client/generated/evm-accounts/evm-accounts.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EACV,oBAAoB,EACpB,aAAa,EACb,UAAU,EACV,mBAAmB,EACnB,oBAAoB,EACpB,yBAAyB,EACzB,0BAA0B,EAC1B,oBAAoB,EACpB,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,sBAAsB,EACtB,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,EACrB,sBAAsB,EACtB,mBAAmB,EACnB,oBAAoB,EACrB,MAAM,6CAA6C,CAAC;AAErD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,KAAK,eAAe,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,KAAK,KAAK,OAAO,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAE/E;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAC1B,SAAS,qBAAqB,EAC9B,UAAU,eAAe,CAAC,OAAO,YAAY,CAAC,
|
|
1
|
+
{"version":3,"file":"evm-accounts.d.ts","sourceRoot":"","sources":["../../../../openapi-client/generated/evm-accounts/evm-accounts.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EACV,oBAAoB,EACpB,6BAA6B,EAC7B,8BAA8B,EAC9B,aAAa,EACb,UAAU,EACV,6BAA6B,EAC7B,mBAAmB,EACnB,oBAAoB,EACpB,yBAAyB,EACzB,0BAA0B,EAC1B,oBAAoB,EACpB,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,sBAAsB,EACtB,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,EACrB,sBAAsB,EACtB,mBAAmB,EACnB,oBAAoB,EACrB,MAAM,6CAA6C,CAAC;AAErD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,KAAK,eAAe,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,KAAK,KAAK,OAAO,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAE/E;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAC1B,SAAS,qBAAqB,EAC9B,UAAU,eAAe,CAAC,OAAO,YAAY,CAAC,kBAAkB,CAAC,CAAC,gCAMnE,CAAC;AACF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAC3B,uBAAuB,oBAAoB,EAC3C,UAAU,eAAe,CAAC,OAAO,YAAY,CAAC,UAAU,CAAC,CAAC,wBAW3D,CAAC;AACF;;;GAGG;AACH,eAAO,MAAM,aAAa,GACxB,SAAS,MAAM,EACf,UAAU,eAAe,CAAC,OAAO,YAAY,CAAC,UAAU,CAAC,CAAC,wBAG3D,CAAC;AACF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAC3B,SAAS,MAAM,EACf,sBAAs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,OAAO,CAAC,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC,CAAC,CAAC;AACnG,MAAM,MAAM,iBAAiB,GAAG,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,CAAC;AACrF,MAAM,MAAM,oBAAoB,GAAG,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC;AAC3F,MAAM,MAAM,sBAAsB,GAAG,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC,CAAC;AAC/F,MAAM,MAAM,gCAAgC,GAAG,WAAW,CACxD,OAAO,CAAC,UAAU,CAAC,OAAO,0BAA0B,CAAC,CAAC,CACvD,CAAC;AACF,MAAM,MAAM,0CAA0C,GAAG,WAAW,CAClE,OAAO,CAAC,UAAU,CAAC,OAAO,oCAAoC,CAAC,CAAC,CACjE,CAAC;AACF,MAAM,MAAM,sBAAsB,GAAG,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC,CAAC;AAC/F,MAAM,MAAM,sBAAsB,GAAG,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC,CAAC;AAC/F,MAAM,MAAM,4BAA4B,GAAG,WAAW,CACpD,OAAO,CAAC,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC,CACnD,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v7.
|
|
2
|
+
* Generated by orval v7.21.0 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Coinbase Developer Platform APIs
|
|
5
5
|
* The Coinbase Developer Platform APIs - leading the world's transition onchain.
|
|
6
6
|
* OpenAPI spec version: 2.0.0
|
|
7
7
|
*/
|
|
8
|
-
import type { CreateEvmSmartAccountBody, CreateSpendPermissionRequest, EvmSmartAccount, EvmUserOperation, ListEvmSmartAccounts200, ListEvmSmartAccountsParams, ListSpendPermissions200, ListSpendPermissionsParams, PrepareAndSendUserOperationBody, PrepareUserOperationBody,
|
|
8
|
+
import type { CreateEvmSmartAccountBody, CreateSpendPermissionRequest, EvmSmartAccount, EvmSpendPermissionsRevokeSpendPermissionRequest, EvmUserOperation, ListEvmSmartAccounts200, ListEvmSmartAccountsParams, ListSpendPermissions200, ListSpendPermissionsParams, PrepareAndSendUserOperationBody, PrepareUserOperationBody, SendUserOperationBody, UpdateEvmSmartAccountBody } from "../coinbaseDeveloperPlatformAPIs.schemas.js";
|
|
9
9
|
import { cdpApiClient } from "../../cdpApiClient.js";
|
|
10
10
|
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
11
11
|
/**
|
|
@@ -13,42 +13,42 @@ type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
|
13
13
|
The response is paginated, and by default, returns 20 accounts per page.
|
|
14
14
|
* @summary List Smart Accounts
|
|
15
15
|
*/
|
|
16
|
-
export declare const listEvmSmartAccounts: (params?: ListEvmSmartAccountsParams, options?: SecondParameter<typeof cdpApiClient
|
|
16
|
+
export declare const listEvmSmartAccounts: (params?: ListEvmSmartAccountsParams, options?: SecondParameter<typeof cdpApiClient<ListEvmSmartAccounts200>>) => Promise<ListEvmSmartAccounts200>;
|
|
17
17
|
/**
|
|
18
18
|
* Creates a new Smart Account.
|
|
19
19
|
* @summary Create a Smart Account
|
|
20
20
|
*/
|
|
21
|
-
export declare const createEvmSmartAccount: (createEvmSmartAccountBody: CreateEvmSmartAccountBody, options?: SecondParameter<typeof cdpApiClient
|
|
21
|
+
export declare const createEvmSmartAccount: (createEvmSmartAccountBody: CreateEvmSmartAccountBody, options?: SecondParameter<typeof cdpApiClient<EvmSmartAccount>>) => Promise<EvmSmartAccount>;
|
|
22
22
|
/**
|
|
23
23
|
* Gets a Smart Account by its name.
|
|
24
24
|
* @summary Get a Smart Account by name
|
|
25
25
|
*/
|
|
26
|
-
export declare const getEvmSmartAccountByName: (name: string, options?: SecondParameter<typeof cdpApiClient
|
|
26
|
+
export declare const getEvmSmartAccountByName: (name: string, options?: SecondParameter<typeof cdpApiClient<EvmSmartAccount>>) => Promise<EvmSmartAccount>;
|
|
27
27
|
/**
|
|
28
28
|
* Gets a Smart Account by its address.
|
|
29
29
|
* @summary Get a Smart Account by address
|
|
30
30
|
*/
|
|
31
|
-
export declare const getEvmSmartAccount: (address: string, options?: SecondParameter<typeof cdpApiClient
|
|
31
|
+
export declare const getEvmSmartAccount: (address: string, options?: SecondParameter<typeof cdpApiClient<EvmSmartAccount>>) => Promise<EvmSmartAccount>;
|
|
32
32
|
/**
|
|
33
33
|
* Updates an existing EVM smart account. Use this to update the smart account's name.
|
|
34
34
|
* @summary Update an EVM Smart Account
|
|
35
35
|
*/
|
|
36
|
-
export declare const updateEvmSmartAccount: (address: string, updateEvmSmartAccountBody: UpdateEvmSmartAccountBody, options?: SecondParameter<typeof cdpApiClient
|
|
36
|
+
export declare const updateEvmSmartAccount: (address: string, updateEvmSmartAccountBody: UpdateEvmSmartAccountBody, options?: SecondParameter<typeof cdpApiClient<EvmSmartAccount>>) => Promise<EvmSmartAccount>;
|
|
37
37
|
/**
|
|
38
38
|
* Prepares a new user operation on a Smart Account for a specific network.
|
|
39
39
|
* @summary Prepare a user operation
|
|
40
40
|
*/
|
|
41
|
-
export declare const prepareUserOperation: (address: string, prepareUserOperationBody: PrepareUserOperationBody, options?: SecondParameter<typeof cdpApiClient
|
|
41
|
+
export declare const prepareUserOperation: (address: string, prepareUserOperationBody: PrepareUserOperationBody, options?: SecondParameter<typeof cdpApiClient<EvmUserOperation>>) => Promise<EvmUserOperation>;
|
|
42
42
|
/**
|
|
43
43
|
* Prepares, signs, and sends a user operation for an EVM Smart Account. This API can be used only if the owner on Smart Account is a CDP EVM Account.
|
|
44
44
|
* @summary Prepare and send a user operation for EVM Smart Account
|
|
45
45
|
*/
|
|
46
|
-
export declare const prepareAndSendUserOperation: (address: string, prepareAndSendUserOperationBody: PrepareAndSendUserOperationBody, options?: SecondParameter<typeof cdpApiClient
|
|
46
|
+
export declare const prepareAndSendUserOperation: (address: string, prepareAndSendUserOperationBody: PrepareAndSendUserOperationBody, options?: SecondParameter<typeof cdpApiClient<EvmUserOperation>>) => Promise<EvmUserOperation>;
|
|
47
47
|
/**
|
|
48
48
|
* Gets a user operation by its hash.
|
|
49
49
|
* @summary Get a user operation
|
|
50
50
|
*/
|
|
51
|
-
export declare const getUserOperation: (address: string, userOpHash: string, options?: SecondParameter<typeof cdpApiClient
|
|
51
|
+
export declare const getUserOperation: (address: string, userOpHash: string, options?: SecondParameter<typeof cdpApiClient<EvmUserOperation>>) => Promise<EvmUserOperation>;
|
|
52
52
|
/**
|
|
53
53
|
* Sends a user operation with a signature.
|
|
54
54
|
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).
|
|
@@ -56,22 +56,22 @@ The signature must be 65 bytes in length, consisting of: - 32 bytes for the `r`
|
|
|
56
56
|
If using the CDP Paymaster, the user operation must be signed and sent within 2 minutes of being prepared.
|
|
57
57
|
* @summary Send a user operation
|
|
58
58
|
*/
|
|
59
|
-
export declare const sendUserOperation: (address: string, userOpHash: string, sendUserOperationBody: SendUserOperationBody, options?: SecondParameter<typeof cdpApiClient
|
|
59
|
+
export declare const sendUserOperation: (address: string, userOpHash: string, sendUserOperationBody: SendUserOperationBody, options?: SecondParameter<typeof cdpApiClient<EvmUserOperation>>) => Promise<EvmUserOperation>;
|
|
60
60
|
/**
|
|
61
61
|
* Creates a spend permission for the given smart account address.
|
|
62
62
|
* @summary Create a spend permission
|
|
63
63
|
*/
|
|
64
|
-
export declare const createSpendPermission: (address: string, createSpendPermissionRequest: CreateSpendPermissionRequest, options?: SecondParameter<typeof cdpApiClient
|
|
64
|
+
export declare const createSpendPermission: (address: string, createSpendPermissionRequest: CreateSpendPermissionRequest, options?: SecondParameter<typeof cdpApiClient<EvmUserOperation>>) => Promise<EvmUserOperation>;
|
|
65
65
|
/**
|
|
66
66
|
* Lists spend permission for the given smart account address.
|
|
67
67
|
* @summary List spend permissions
|
|
68
68
|
*/
|
|
69
|
-
export declare const listSpendPermissions: (address: string, params?: ListSpendPermissionsParams, options?: SecondParameter<typeof cdpApiClient
|
|
69
|
+
export declare const listSpendPermissions: (address: string, params?: ListSpendPermissionsParams, options?: SecondParameter<typeof cdpApiClient<ListSpendPermissions200>>) => Promise<ListSpendPermissions200>;
|
|
70
70
|
/**
|
|
71
71
|
* Revokes an existing spend permission.
|
|
72
72
|
* @summary Revoke a spend permission
|
|
73
73
|
*/
|
|
74
|
-
export declare const revokeSpendPermission: (address: string,
|
|
74
|
+
export declare const revokeSpendPermission: (address: string, evmSpendPermissionsRevokeSpendPermissionRequest: EvmSpendPermissionsRevokeSpendPermissionRequest, options?: SecondParameter<typeof cdpApiClient<EvmUserOperation>>) => Promise<EvmUserOperation>;
|
|
75
75
|
export type ListEvmSmartAccountsResult = NonNullable<Awaited<ReturnType<typeof listEvmSmartAccounts>>>;
|
|
76
76
|
export type CreateEvmSmartAccountResult = NonNullable<Awaited<ReturnType<typeof createEvmSmartAccount>>>;
|
|
77
77
|
export type GetEvmSmartAccountByNameResult = NonNullable<Awaited<ReturnType<typeof getEvmSmartAccountByName>>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"evm-smart-accounts.d.ts","sourceRoot":"","sources":["../../../../openapi-client/generated/evm-smart-accounts/evm-smart-accounts.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EACV,yBAAyB,EACzB,4BAA4B,EAC5B,eAAe,EACf,gBAAgB,EAChB,uBAAuB,EACvB,0BAA0B,EAC1B,uBAAuB,EACvB,0BAA0B,EAC1B,+BAA+B,EAC/B,wBAAwB,EACxB,
|
|
1
|
+
{"version":3,"file":"evm-smart-accounts.d.ts","sourceRoot":"","sources":["../../../../openapi-client/generated/evm-smart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Platform APIs
|
|
5
5
|
* The Coinbase Developer Platform APIs - leading the world's transition onchain.
|
|
@@ -12,12 +12,12 @@ type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
|
12
12
|
* Get a price estimate for a swap between two tokens on an EVM network.
|
|
13
13
|
* @summary Get a price estimate for a swap
|
|
14
14
|
*/
|
|
15
|
-
export declare const getEvmSwapPrice: (params: GetEvmSwapPriceParams, options?: SecondParameter<typeof cdpApiClient
|
|
15
|
+
export declare const getEvmSwapPrice: (params: GetEvmSwapPriceParams, options?: SecondParameter<typeof cdpApiClient<GetSwapPriceResponseWrapper>>) => Promise<GetSwapPriceResponseWrapper>;
|
|
16
16
|
/**
|
|
17
17
|
* Create a swap quote, which includes the payload to sign as well as the transaction data needed to execute the swap. The developer is responsible for signing the payload and submitting the transaction to the network in order to execute the swap.
|
|
18
18
|
* @summary Create a swap quote
|
|
19
19
|
*/
|
|
20
|
-
export declare const createEvmSwapQuote: (createEvmSwapQuoteBody: CreateEvmSwapQuoteBody, options?: SecondParameter<typeof cdpApiClient
|
|
20
|
+
export declare const createEvmSwapQuote: (createEvmSwapQuoteBody: CreateEvmSwapQuoteBody, options?: SecondParameter<typeof cdpApiClient<CreateSwapQuoteResponseWrapper>>) => Promise<CreateSwapQuoteResponseWrapper>;
|
|
21
21
|
export type GetEvmSwapPriceResult = NonNullable<Awaited<ReturnType<typeof getEvmSwapPrice>>>;
|
|
22
22
|
export type CreateEvmSwapQuoteResult = NonNullable<Awaited<ReturnType<typeof createEvmSwapQuote>>>;
|
|
23
23
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"evm-swaps.d.ts","sourceRoot":"","sources":["../../../../openapi-client/generated/evm-swaps/evm-swaps.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EACV,sBAAsB,EACtB,8BAA8B,EAC9B,qBAAqB,EACrB,2BAA2B,EAC5B,MAAM,6CAA6C,CAAC;AAErD,OAAO,EA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Generated by orval v7.
|
|
2
|
+
* Generated by orval v7.21.0 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Coinbase Developer Platform APIs
|
|
5
5
|
* The Coinbase Developer Platform APIs - leading the world's transition onchain.
|
|
@@ -13,7 +13,7 @@ type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
|
13
13
|
**Note:** This endpoint is still under development and does not yet provide strong freshness guarantees. Specifically, balances of new tokens can, on occasion, take up to ~30 seconds to appear, while balances of tokens already belonging to an address will generally be close to chain tip. Freshness of new token balances will improve over the coming weeks.
|
|
14
14
|
* @summary List EVM token balances
|
|
15
15
|
*/
|
|
16
|
-
export declare const listEvmTokenBalances: (network: ListEvmTokenBalancesNetwork, address: string, params?: ListEvmTokenBalancesParams, options?: SecondParameter<typeof cdpApiClient
|
|
16
|
+
export declare const listEvmTokenBalances: (network: ListEvmTokenBalancesNetwork, address: string, params?: ListEvmTokenBalancesParams, options?: SecondParameter<typeof cdpApiClient<ListEvmTokenBalances200>>) => Promise<ListEvmTokenBalances200>;
|
|
17
17
|
export type ListEvmTokenBalancesResult = NonNullable<Awaited<ReturnType<typeof listEvmTokenBalances>>>;
|
|
18
18
|
export {};
|
|
19
19
|
//# sourceMappingURL=evm-token-balances.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"evm-token-balances.d.ts","sourceRoot":"","sources":["../../../../openapi-client/generated/evm-token-balances/evm-token-balances.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EACV,uBAAuB,EACvB,2BAA2B,EAC3B,0BAA0B,EAC3B,MAAM,6CAA6C,CAAC;AAErD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,KAAK,eAAe,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,KAAK,KAAK,OAAO,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAE/E;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,GAC/B,SAAS,2BAA2B,EACpC,SAAS,MAAM,EACf,SAAS,0BAA0B,EACnC,UAAU,eAAe,CAAC,OAAO,YAAY,CAAC,
|
|
1
|
+
{"version":3,"file":"evm-token-balances.d.ts","sourceRoot":"","sources":["../../../../openapi-client/generated/evm-token-balances/evm-token-balances.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EACV,uBAAuB,EACvB,2BAA2B,EAC3B,0BAA0B,EAC3B,MAAM,6CAA6C,CAAC;AAErD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,KAAK,eAAe,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,KAAK,KAAK,OAAO,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAE/E;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,GAC/B,SAAS,2BAA2B,EACpC,SAAS,MAAM,EACf,SAAS,0BAA0B,EACnC,UAAU,eAAe,CAAC,OAAO,YAAY,CAAC,uBAAuB,CAAC,CAAC,qCAMxE,CAAC;AACF,MAAM,MAAM,0BAA0B,GAAG,WAAW,CAClD,OAAO,CAAC,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CACjD,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v7.
|
|
2
|
+
* Generated by orval v7.21.0 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Coinbase Developer Platform APIs
|
|
5
5
|
* The Coinbase Developer Platform APIs - leading the world's transition onchain.
|
|
@@ -26,24 +26,25 @@ A single blockchain address cannot exceed the specified limits, even if multiple
|
|
|
26
26
|
|
|
27
27
|
* @summary Request funds on EVM test networks
|
|
28
28
|
*/
|
|
29
|
-
export declare const requestEvmFaucet: (requestEvmFaucetBody: RequestEvmFaucetBody, options?: SecondParameter<typeof cdpApiClient
|
|
29
|
+
export declare const requestEvmFaucet: (requestEvmFaucetBody: RequestEvmFaucetBody, options?: SecondParameter<typeof cdpApiClient<RequestEvmFaucet200>>) => Promise<RequestEvmFaucet200>;
|
|
30
30
|
/**
|
|
31
31
|
* Request funds from the CDP Faucet on Solana devnet.
|
|
32
32
|
|
|
33
|
-
Faucets are available for SOL.
|
|
33
|
+
Faucets are available for SOL, USDC, and CBTUSD.
|
|
34
34
|
|
|
35
35
|
To prevent abuse, we enforce rate limits within a rolling 24-hour window to control the amount of funds that can be requested.
|
|
36
36
|
These limits are applied at both the CDP Project level and the blockchain address level.
|
|
37
37
|
A single blockchain address cannot exceed the specified limits, even if multiple users submit requests to the same address.
|
|
38
38
|
|
|
39
|
-
| Token
|
|
40
|
-
|
|
41
|
-
| SOL
|
|
42
|
-
| USDC
|
|
39
|
+
| Token | Amount per Faucet Request |Rolling 24-hour window Rate Limits|
|
|
40
|
+
|:-----: |:-------------------------:|:--------------------------------:|
|
|
41
|
+
| SOL | 0.00125 SOL | 0.0125 SOL |
|
|
42
|
+
| USDC | 1 USDC | 10 USDC |
|
|
43
|
+
| CBTUSD | 1 CBTUSD | 10 CBTUSD |
|
|
43
44
|
|
|
44
45
|
* @summary Request funds on Solana devnet
|
|
45
46
|
*/
|
|
46
|
-
export declare const requestSolanaFaucet: (requestSolanaFaucetBody: RequestSolanaFaucetBody, options?: SecondParameter<typeof cdpApiClient
|
|
47
|
+
export declare const requestSolanaFaucet: (requestSolanaFaucetBody: RequestSolanaFaucetBody, options?: SecondParameter<typeof cdpApiClient<RequestSolanaFaucet200>>) => Promise<RequestSolanaFaucet200>;
|
|
47
48
|
export type RequestEvmFaucetResult = NonNullable<Awaited<ReturnType<typeof requestEvmFaucet>>>;
|
|
48
49
|
export type RequestSolanaFaucetResult = NonNullable<Awaited<ReturnType<typeof requestSolanaFaucet>>>;
|
|
49
50
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"faucets.d.ts","sourceRoot":"","sources":["../../../../openapi-client/generated/faucets/faucets.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EACV,mBAAmB,EACnB,oBAAoB,EACpB,sBAAsB,EACtB,uBAAuB,EACxB,MAAM,6CAA6C,CAAC;AAErD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,KAAK,eAAe,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,KAAK,KAAK,OAAO,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAE/E;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,gBAAgB,GAC3B,sBAAsB,oBAAoB,EAC1C,UAAU,eAAe,CAAC,OAAO,YAAY,CAAC,
|
|
1
|
+
{"version":3,"file":"faucets.d.ts","sourceRoot":"","sources":["../../../../openapi-client/generated/faucets/faucets.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EACV,mBAAmB,EACnB,oBAAoB,EACpB,sBAAsB,EACtB,uBAAuB,EACxB,MAAM,6CAA6C,CAAC;AAErD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,KAAK,eAAe,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,KAAK,KAAK,OAAO,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAE/E;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,gBAAgB,GAC3B,sBAAsB,oBAAoB,EAC1C,UAAU,eAAe,CAAC,OAAO,YAAY,CAAC,mBAAmB,CAAC,CAAC,iCAWpE,CAAC;AACF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,mBAAmB,GAC9B,yBAAyB,uBAAuB,EAChD,UAAU,eAAe,CAAC,OAAO,YAAY,CAAC,sBAAsB,CAAC,CAAC,oCAWvE,CAAC;AACF,MAAM,MAAM,sBAAsB,GAAG,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC,CAAC;AAC/F,MAAM,MAAM,yBAAyB,GAAG,WAAW,CACjD,OAAO,CAAC,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAChD,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v7.
|
|
2
|
+
* Generated by orval v7.21.0 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Coinbase Developer Platform APIs
|
|
5
5
|
* The Coinbase Developer Platform APIs - leading the world's transition onchain.
|
|
@@ -14,14 +14,14 @@ Analyzes transaction history to discover token interactions.
|
|
|
14
14
|
|
|
15
15
|
* @summary List token addresses for account
|
|
16
16
|
*/
|
|
17
|
-
export declare const listTokensForAccount: (network: "base" | "base-sepolia", address: string, options?: SecondParameter<typeof cdpApiClient
|
|
17
|
+
export declare const listTokensForAccount: (network: "base" | "base-sepolia", address: string, options?: SecondParameter<typeof cdpApiClient<AccountTokenAddressesResponse>>) => Promise<AccountTokenAddressesResponse>;
|
|
18
18
|
/**
|
|
19
19
|
* Lists the token balances of an EVM address on a given network. The balances include ERC-20 tokens and the native gas token (usually ETH). The response is paginated, and by default, returns 20 balances per page.
|
|
20
20
|
|
|
21
21
|
**Note:** This endpoint provides <1 second freshness from chain tip, <500ms response latency for wallets with reasonable token history, and 99.9% uptime for production use.
|
|
22
22
|
* @summary List EVM token balances
|
|
23
23
|
*/
|
|
24
|
-
export declare const listDataTokenBalances: (network: ListEvmTokenBalancesNetwork, address: string, params?: ListDataTokenBalancesParams, options?: SecondParameter<typeof cdpApiClient
|
|
24
|
+
export declare const listDataTokenBalances: (network: ListEvmTokenBalancesNetwork, address: string, params?: ListDataTokenBalancesParams, options?: SecondParameter<typeof cdpApiClient<ListDataTokenBalances200>>) => Promise<ListDataTokenBalances200>;
|
|
25
25
|
export type ListTokensForAccountResult = NonNullable<Awaited<ReturnType<typeof listTokensForAccount>>>;
|
|
26
26
|
export type ListDataTokenBalancesResult = NonNullable<Awaited<ReturnType<typeof listDataTokenBalances>>>;
|
|
27
27
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onchain-data.d.ts","sourceRoot":"","sources":["../../../../openapi-client/generated/onchain-data/onchain-data.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EACV,6BAA6B,EAC7B,wBAAwB,EACxB,2BAA2B,EAC3B,2BAA2B,EAC5B,MAAM,6CAA6C,CAAC;AAErD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,KAAK,eAAe,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,KAAK,KAAK,OAAO,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAE/E;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,GAC/B,SAAS,MAAM,GAAG,cAAc,EAChC,SAAS,MAAM,EACf,UAAU,eAAe,CAAC,OAAO,YAAY,CAAC,
|
|
1
|
+
{"version":3,"file":"onchain-data.d.ts","sourceRoot":"","sources":["../../../../openapi-client/generated/onchain-data/onchain-data.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EACV,6BAA6B,EAC7B,wBAAwB,EACxB,2BAA2B,EAC3B,2BAA2B,EAC5B,MAAM,6CAA6C,CAAC;AAErD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,KAAK,eAAe,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,KAAK,KAAK,OAAO,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAE/E;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,GAC/B,SAAS,MAAM,GAAG,cAAc,EAChC,SAAS,MAAM,EACf,UAAU,eAAe,CAAC,OAAO,YAAY,CAAC,6BAA6B,CAAC,CAAC,2CAM9E,CAAC;AACF;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,GAChC,SAAS,2BAA2B,EACpC,SAAS,MAAM,EACf,SAAS,2BAA2B,EACpC,UAAU,eAAe,CAAC,OAAO,YAAY,CAAC,wBAAwB,CAAC,CAAC,sCAMzE,CAAC;AACF,MAAM,MAAM,0BAA0B,GAAG,WAAW,CAClD,OAAO,CAAC,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CACjD,CAAC;AACF,MAAM,MAAM,2BAA2B,GAAG,WAAW,CACnD,OAAO,CAAC,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC,CAClD,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v7.
|
|
2
|
+
* Generated by orval v7.21.0 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Coinbase Developer Platform APIs
|
|
5
5
|
* The Coinbase Developer Platform APIs - leading the world's transition onchain.
|
|
6
6
|
* OpenAPI spec version: 2.0.0
|
|
7
7
|
*/
|
|
8
|
-
import type { CreateOnrampOrder201, CreateOnrampOrderBody, CreateOnrampSession201, CreateOnrampSessionBody, GetOnrampOrderById200 } from "../coinbaseDeveloperPlatformAPIs.schemas.js";
|
|
8
|
+
import type { CreateOnrampOrder201, CreateOnrampOrderBody, CreateOnrampSession201, CreateOnrampSessionBody, GetOnrampOrderById200, GetOnrampUserLimits200, GetOnrampUserLimitsBody } from "../coinbaseDeveloperPlatformAPIs.schemas.js";
|
|
9
9
|
import { cdpApiClient } from "../../cdpApiClient.js";
|
|
10
10
|
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
11
11
|
/**
|
|
@@ -16,12 +16,12 @@ This API currently only supports the payment method `GUEST_CHECKOUT_APPLE_PAY`.
|
|
|
16
16
|
For detailed integration instructions and to get access to this API, refer to the [Apple Pay Onramp API docs](https://docs.cdp.coinbase.com/onramp-&-offramp/onramp-apis/apple-pay-onramp-api).
|
|
17
17
|
* @summary Create an onramp order
|
|
18
18
|
*/
|
|
19
|
-
export declare const createOnrampOrder: (createOnrampOrderBody: CreateOnrampOrderBody, options?: SecondParameter<typeof cdpApiClient
|
|
19
|
+
export declare const createOnrampOrder: (createOnrampOrderBody: CreateOnrampOrderBody, options?: SecondParameter<typeof cdpApiClient<CreateOnrampOrder201>>) => Promise<CreateOnrampOrder201>;
|
|
20
20
|
/**
|
|
21
21
|
* Get an onramp order by ID.
|
|
22
22
|
* @summary Get an onramp order by ID
|
|
23
23
|
*/
|
|
24
|
-
export declare const getOnrampOrderById: (orderId: string, options?: SecondParameter<typeof cdpApiClient
|
|
24
|
+
export declare const getOnrampOrderById: (orderId: string, options?: SecondParameter<typeof cdpApiClient<GetOnrampOrderById200>>) => Promise<GetOnrampOrderById200>;
|
|
25
25
|
/**
|
|
26
26
|
* Returns a single-use URL for an Onramp session. This API provides flexible functionality based on the parameters provided, supporting three cases:
|
|
27
27
|
|
|
@@ -43,9 +43,16 @@ export declare const getOnrampOrderById: (orderId: string, options?: SecondParam
|
|
|
43
43
|
**Note**: Only one of `paymentAmount` or `purchaseAmount` should be provided, not both. Providing both will result in an error. When `paymentAmount` is provided, the quote shows how much crypto the user will receive for the specified fiat amount (fee-inclusive). When `purchaseAmount` is provided, the quote shows how much fiat the user needs to pay for the specified crypto amount (fee-exclusive).
|
|
44
44
|
* @summary Create an onramp session
|
|
45
45
|
*/
|
|
46
|
-
export declare const createOnrampSession: (createOnrampSessionBody: CreateOnrampSessionBody, options?: SecondParameter<typeof cdpApiClient
|
|
46
|
+
export declare const createOnrampSession: (createOnrampSessionBody: CreateOnrampSessionBody, options?: SecondParameter<typeof cdpApiClient<CreateOnrampSession201>>) => Promise<CreateOnrampSession201>;
|
|
47
|
+
/**
|
|
48
|
+
* Returns the transaction limits for an onramp user based on their payment method and user identifier. Use this API to show users their remaining purchase capacity before initiating an onramp transaction.
|
|
49
|
+
Currently supports `GUEST_CHECKOUT_APPLE_PAY` payment method with phone number identification. The phone number must have been previously verified via OTP.
|
|
50
|
+
* @summary Get onramp user limits
|
|
51
|
+
*/
|
|
52
|
+
export declare const getOnrampUserLimits: (getOnrampUserLimitsBody: GetOnrampUserLimitsBody, options?: SecondParameter<typeof cdpApiClient<GetOnrampUserLimits200>>) => Promise<GetOnrampUserLimits200>;
|
|
47
53
|
export type CreateOnrampOrderResult = NonNullable<Awaited<ReturnType<typeof createOnrampOrder>>>;
|
|
48
54
|
export type GetOnrampOrderByIdResult = NonNullable<Awaited<ReturnType<typeof getOnrampOrderById>>>;
|
|
49
55
|
export type CreateOnrampSessionResult = NonNullable<Awaited<ReturnType<typeof createOnrampSession>>>;
|
|
56
|
+
export type GetOnrampUserLimitsResult = NonNullable<Awaited<ReturnType<typeof getOnrampUserLimits>>>;
|
|
50
57
|
export {};
|
|
51
58
|
//# sourceMappingURL=onramp.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onramp.d.ts","sourceRoot":"","sources":["../../../../openapi-client/generated/onramp/onramp.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EACV,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,EACtB,uBAAuB,EACvB,qBAAqB,EACtB,MAAM,6CAA6C,CAAC;AAErD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,KAAK,eAAe,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,KAAK,KAAK,OAAO,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAE/E;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,GAC5B,uBAAuB,qBAAqB,EAC5C,UAAU,eAAe,CAAC,OAAO,YAAY,CAAC,
|
|
1
|
+
{"version":3,"file":"onramp.d.ts","sourceRoot":"","sources":["../../../../openapi-client/generated/onramp/onramp.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EACV,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,EACtB,uBAAu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mBAAmB,CAAC,CAAC,CAChD,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v7.
|
|
2
|
+
* Generated by orval v7.21.0 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Coinbase Developer Platform APIs
|
|
5
5
|
* The Coinbase Developer Platform APIs - leading the world's transition onchain.
|
|
@@ -13,27 +13,27 @@ type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
|
13
13
|
The response is paginated, and by default, returns 20 policies per page.
|
|
14
14
|
* @summary List policies
|
|
15
15
|
*/
|
|
16
|
-
export declare const listPolicies: (params?: ListPoliciesParams, options?: SecondParameter<typeof cdpApiClient
|
|
16
|
+
export declare const listPolicies: (params?: ListPoliciesParams, options?: SecondParameter<typeof cdpApiClient<ListPolicies200>>) => Promise<ListPolicies200>;
|
|
17
17
|
/**
|
|
18
18
|
* Create a policy that can be used to govern the behavior of accounts.
|
|
19
19
|
* @summary Create a policy
|
|
20
20
|
*/
|
|
21
|
-
export declare const createPolicy: (createPolicyBody: CreatePolicyBody, options?: SecondParameter<typeof cdpApiClient
|
|
21
|
+
export declare const createPolicy: (createPolicyBody: CreatePolicyBody, options?: SecondParameter<typeof cdpApiClient<Policy>>) => Promise<Policy>;
|
|
22
22
|
/**
|
|
23
23
|
* Get a policy by its ID.
|
|
24
24
|
* @summary Get a policy by ID
|
|
25
25
|
*/
|
|
26
|
-
export declare const getPolicyById: (policyId: string, options?: SecondParameter<typeof cdpApiClient
|
|
26
|
+
export declare const getPolicyById: (policyId: string, options?: SecondParameter<typeof cdpApiClient<Policy>>) => Promise<Policy>;
|
|
27
27
|
/**
|
|
28
28
|
* Delete a policy by its ID. This will have the effect of removing the policy from all accounts that are currently using it.
|
|
29
29
|
* @summary Delete a policy
|
|
30
30
|
*/
|
|
31
|
-
export declare const deletePolicy: (policyId: string, options?: SecondParameter<typeof cdpApiClient
|
|
31
|
+
export declare const deletePolicy: (policyId: string, options?: SecondParameter<typeof cdpApiClient<void>>) => Promise<void>;
|
|
32
32
|
/**
|
|
33
33
|
* Updates a policy by its ID. This will have the effect of applying the updated policy to all accounts that are currently using it.
|
|
34
34
|
* @summary Update a policy
|
|
35
35
|
*/
|
|
36
|
-
export declare const updatePolicy: (policyId: string, updatePolicyBody: UpdatePolicyBody, options?: SecondParameter<typeof cdpApiClient
|
|
36
|
+
export declare const updatePolicy: (policyId: string, updatePolicyBody: UpdatePolicyBody, options?: SecondParameter<typeof cdpApiClient<Policy>>) => Promise<Policy>;
|
|
37
37
|
export type ListPoliciesResult = NonNullable<Awaited<ReturnType<typeof listPolicies>>>;
|
|
38
38
|
export type CreatePolicyResult = NonNullable<Awaited<ReturnType<typeof createPolicy>>>;
|
|
39
39
|
export type GetPolicyByIdResult = NonNullable<Awaited<ReturnType<typeof getPolicyById>>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"policy-engine.d.ts","sourceRoot":"","sources":["../../../../openapi-client/generated/policy-engine/policy-engine.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EACV,gBAAgB,EAChB,eAAe,EACf,kBAAkB,EAClB,MAAM,EACN,gBAAgB,EACjB,MAAM,6CAA6C,CAAC;AAErD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,KAAK,eAAe,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,KAAK,KAAK,OAAO,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAE/E;;;;GAIG;AACH,eAAO,MAAM,YAAY,GACvB,SAAS,kBAAkB,EAC3B,UAAU,eAAe,CAAC,OAAO,YAAY,CAAC,
|
|
1
|
+
{"version":3,"file":"policy-engine.d.ts","sourceRoot":"","sources":["../../../../openapi-client/generated/policy-engine/policy-engine.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EACV,gBAAgB,EAChB,eAAe,E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CAAC;AACzF,MAAM,MAAM,kBAAkB,GAAG,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC;AACvF,MAAM,MAAM,kBAAkB,GAAG,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v7.
|
|
2
|
+
* Generated by orval v7.21.0 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Coinbase Developer Platform APIs
|
|
5
5
|
* The Coinbase Developer Platform APIs - leading the world's transition onchain.
|
|
@@ -15,42 +15,42 @@ The response is paginated, and by default, returns 20 accounts per page.
|
|
|
15
15
|
If a name is provided, the response will contain only the account with that name.
|
|
16
16
|
* @summary List Solana accounts or get account by name
|
|
17
17
|
*/
|
|
18
|
-
export declare const listSolanaAccounts: (params?: ListSolanaAccountsParams, options?: SecondParameter<typeof cdpApiClient
|
|
18
|
+
export declare const listSolanaAccounts: (params?: ListSolanaAccountsParams, options?: SecondParameter<typeof cdpApiClient<ListSolanaAccounts200>>) => Promise<ListSolanaAccounts200>;
|
|
19
19
|
/**
|
|
20
20
|
* Creates a new Solana account.
|
|
21
21
|
* @summary Create a Solana account
|
|
22
22
|
*/
|
|
23
|
-
export declare const createSolanaAccount: (createSolanaAccountBody?: CreateSolanaAccountBody, options?: SecondParameter<typeof cdpApiClient
|
|
23
|
+
export declare const createSolanaAccount: (createSolanaAccountBody?: CreateSolanaAccountBody, options?: SecondParameter<typeof cdpApiClient<SolanaAccount>>) => Promise<SolanaAccount>;
|
|
24
24
|
/**
|
|
25
25
|
* Gets a Solana account by its address.
|
|
26
26
|
* @summary Get a Solana account by address
|
|
27
27
|
*/
|
|
28
|
-
export declare const getSolanaAccount: (address: string, options?: SecondParameter<typeof cdpApiClient
|
|
28
|
+
export declare const getSolanaAccount: (address: string, options?: SecondParameter<typeof cdpApiClient<SolanaAccount>>) => Promise<SolanaAccount>;
|
|
29
29
|
/**
|
|
30
30
|
* Updates an existing Solana account. Use this to update the account's name or account-level policy.
|
|
31
31
|
* @summary Update a Solana account
|
|
32
32
|
*/
|
|
33
|
-
export declare const updateSolanaAccount: (address: string, updateSolanaAccountBody: UpdateSolanaAccountBody, options?: SecondParameter<typeof cdpApiClient
|
|
33
|
+
export declare const updateSolanaAccount: (address: string, updateSolanaAccountBody: UpdateSolanaAccountBody, options?: SecondParameter<typeof cdpApiClient<SolanaAccount>>) => Promise<SolanaAccount>;
|
|
34
34
|
/**
|
|
35
35
|
* Gets a Solana account by its name.
|
|
36
36
|
* @summary Get a Solana account by name
|
|
37
37
|
*/
|
|
38
|
-
export declare const getSolanaAccountByName: (name: string, options?: SecondParameter<typeof cdpApiClient
|
|
38
|
+
export declare const getSolanaAccountByName: (name: string, options?: SecondParameter<typeof cdpApiClient<SolanaAccount>>) => Promise<SolanaAccount>;
|
|
39
39
|
/**
|
|
40
40
|
* Import an existing Solana account into the developer's CDP Project. This API should be called from the [CDP SDK](https://github.com/coinbase/cdp-sdk) to ensure that the associated private key is properly encrypted.
|
|
41
41
|
* @summary Import a Solana account
|
|
42
42
|
*/
|
|
43
|
-
export declare const importSolanaAccount: (importSolanaAccountBody: ImportSolanaAccountBody, options?: SecondParameter<typeof cdpApiClient
|
|
43
|
+
export declare const importSolanaAccount: (importSolanaAccountBody: ImportSolanaAccountBody, options?: SecondParameter<typeof cdpApiClient<SolanaAccount>>) => Promise<SolanaAccount>;
|
|
44
44
|
/**
|
|
45
45
|
* Export an existing Solana account's private key. It is important to store the private key in a secure place after it's exported.
|
|
46
46
|
* @summary Export an Solana account
|
|
47
47
|
*/
|
|
48
|
-
export declare const exportSolanaAccount: (address: string, exportSolanaAccountBody: ExportSolanaAccountBody, options?: SecondParameter<typeof cdpApiClient
|
|
48
|
+
export declare const exportSolanaAccount: (address: string, exportSolanaAccountBody: ExportSolanaAccountBody, options?: SecondParameter<typeof cdpApiClient<ExportSolanaAccount200>>) => Promise<ExportSolanaAccount200>;
|
|
49
49
|
/**
|
|
50
50
|
* Export an existing Solana account's private key by its name. It is important to store the private key in a secure place after it's exported.
|
|
51
51
|
* @summary Export a Solana account by name
|
|
52
52
|
*/
|
|
53
|
-
export declare const exportSolanaAccountByName: (name: string, exportSolanaAccountByNameBody: ExportSolanaAccountByNameBody, options?: SecondParameter<typeof cdpApiClient
|
|
53
|
+
export declare const exportSolanaAccountByName: (name: string, exportSolanaAccountByNameBody: ExportSolanaAccountByNameBody, options?: SecondParameter<typeof cdpApiClient<ExportSolanaAccountByName200>>) => Promise<ExportSolanaAccountByName200>;
|
|
54
54
|
/**
|
|
55
55
|
* Signs a transaction with the given Solana account.
|
|
56
56
|
The unsigned transaction should be serialized into a byte array and then encoded as base64.
|
|
@@ -64,14 +64,14 @@ The following transaction types are supported:
|
|
|
64
64
|
The developer is responsible for ensuring that the unsigned transaction is valid, as the API will not validate the transaction.
|
|
65
65
|
* @summary Sign a transaction
|
|
66
66
|
*/
|
|
67
|
-
export declare const signSolanaTransaction: (address: string, signSolanaTransactionBody: SignSolanaTransactionBody, options?: SecondParameter<typeof cdpApiClient
|
|
67
|
+
export declare const signSolanaTransaction: (address: string, signSolanaTransactionBody: SignSolanaTransactionBody, options?: SecondParameter<typeof cdpApiClient<SignSolanaTransaction200>>) => Promise<SignSolanaTransaction200>;
|
|
68
68
|
/**
|
|
69
69
|
* Signs an arbitrary message with the given Solana account.
|
|
70
70
|
|
|
71
71
|
**WARNING:** Never sign a message that you didn't generate, as it can be an arbitrary transaction. For example, it might send all of your funds to an attacker.
|
|
72
72
|
* @summary Sign a message
|
|
73
73
|
*/
|
|
74
|
-
export declare const signSolanaMessage: (address: string, signSolanaMessageBody: SignSolanaMessageBody, options?: SecondParameter<typeof cdpApiClient
|
|
74
|
+
export declare const signSolanaMessage: (address: string, signSolanaMessageBody: SignSolanaMessageBody, options?: SecondParameter<typeof cdpApiClient<SignSolanaMessage200>>) => Promise<SignSolanaMessage200>;
|
|
75
75
|
/**
|
|
76
76
|
* 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.
|
|
77
77
|
|
|
@@ -96,7 +96,7 @@ The following Solana networks are supported:
|
|
|
96
96
|
The developer is responsible for ensuring that the unsigned transaction is valid, as the API will not validate the transaction.
|
|
97
97
|
* @summary Send a Solana transaction
|
|
98
98
|
*/
|
|
99
|
-
export declare const sendSolanaTransaction: (sendSolanaTransactionBody: SendSolanaTransactionBody, options?: SecondParameter<typeof cdpApiClient
|
|
99
|
+
export declare const sendSolanaTransaction: (sendSolanaTransactionBody: SendSolanaTransactionBody, options?: SecondParameter<typeof cdpApiClient<SendSolanaTransaction200>>) => Promise<SendSolanaTransaction200>;
|
|
100
100
|
export type ListSolanaAccountsResult = NonNullable<Awaited<ReturnType<typeof listSolanaAccounts>>>;
|
|
101
101
|
export type CreateSolanaAccountResult = NonNullable<Awaited<ReturnType<typeof createSolanaAccount>>>;
|
|
102
102
|
export type GetSolanaAccountResult = NonNullable<Awaited<ReturnType<typeof getSolanaAccount>>>;
|