@coinbase/cdp-sdk 1.49.2 → 1.51.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/README.md +39 -29
- package/_cjs/accounts/evm/chainToNetworkMapper.js.map +1 -1
- package/_cjs/accounts/evm/eip6492.js.map +1 -1
- package/_cjs/accounts/evm/getBaseNodeRpcUrl.js.map +1 -1
- package/_cjs/accounts/evm/networkCapabilities.js.map +1 -1
- package/_cjs/accounts/evm/networkToChainResolver.js.map +1 -1
- package/_cjs/accounts/evm/resolveViemClients.js.map +1 -1
- package/_cjs/accounts/evm/toEvmDelegatedAccount.js.map +1 -1
- package/_cjs/accounts/evm/toEvmServerAccount.js.map +1 -1
- package/_cjs/accounts/evm/toEvmSmartAccount.js.map +1 -1
- package/_cjs/accounts/evm/toNetworkScopedEvmServerAccount.js.map +1 -1
- package/_cjs/accounts/evm/toNetworkScopedEvmSmartAccount.js.map +1 -1
- package/_cjs/accounts/evm/types.js.map +1 -1
- package/_cjs/accounts/solana/toSolanaAccount.js.map +1 -1
- package/_cjs/accounts/solana/types.js.map +1 -1
- package/_cjs/actions/evm/getUserOperation.js.map +1 -1
- package/_cjs/actions/evm/listSpendPermissions.js.map +1 -1
- package/_cjs/actions/evm/listTokenBalances.js.map +1 -1
- package/_cjs/actions/evm/requestFaucet.js.map +1 -1
- package/_cjs/actions/evm/sendTransaction.js.map +1 -1
- package/_cjs/actions/evm/sendUserOperation.js.map +1 -1
- package/_cjs/actions/evm/signAndWrapTypedDataForSmartAccount.js.map +1 -1
- package/_cjs/actions/evm/spend-permissions/account.use.js.map +1 -1
- package/_cjs/actions/evm/spend-permissions/resolveSpendPermission.js.map +1 -1
- package/_cjs/actions/evm/spend-permissions/smartAccount.use.js.map +1 -1
- package/_cjs/actions/evm/spend-permissions/types.js.map +1 -1
- package/_cjs/actions/evm/swap/createSwapQuote.js.map +1 -1
- package/_cjs/actions/evm/swap/getSwapPrice.js.map +1 -1
- package/_cjs/actions/evm/swap/sendSwapOperation.js.map +1 -1
- package/_cjs/actions/evm/swap/sendSwapTransaction.js.map +1 -1
- package/_cjs/actions/evm/swap/types.js.map +1 -1
- package/_cjs/actions/evm/transfer/accountTransferStrategy.js.map +1 -1
- package/_cjs/actions/evm/transfer/smartAccountTransferStrategy.js.map +1 -1
- package/_cjs/actions/evm/transfer/transfer.js.map +1 -1
- package/_cjs/actions/evm/transfer/transferWithViem.js.map +1 -1
- package/_cjs/actions/evm/transfer/types.js.map +1 -1
- package/_cjs/actions/evm/transfer/utils.js.map +1 -1
- package/_cjs/actions/evm/types.js.map +1 -1
- package/_cjs/actions/evm/waitForEvmEip7702DelegationStatus.js.map +1 -1
- package/_cjs/actions/evm/waitForUserOperation.js.map +1 -1
- package/_cjs/actions/solana/constants.js.map +1 -1
- package/_cjs/actions/solana/requestFaucet.js.map +1 -1
- package/_cjs/actions/solana/rpc.js.map +1 -1
- package/_cjs/actions/solana/sendTransaction.js.map +1 -1
- package/_cjs/actions/solana/signMessage.js.map +1 -1
- package/_cjs/actions/solana/signTransaction.js.map +1 -1
- package/_cjs/actions/solana/transfer.js.map +1 -1
- package/_cjs/actions/solana/types.js.map +1 -1
- package/_cjs/actions/solana/utils.js.map +1 -1
- package/_cjs/actions/webhooks/createWebhookSubscription.js.map +1 -1
- package/_cjs/actions/webhooks/index.js.map +1 -1
- package/_cjs/analytics.js.map +1 -1
- package/_cjs/auth/errors.js.map +1 -1
- package/_cjs/auth/hooks/axios/index.js.map +1 -1
- package/_cjs/auth/hooks/axios/withAuth.js.map +1 -1
- package/_cjs/auth/index.js.map +1 -1
- package/_cjs/auth/utils/hash.js.map +1 -1
- package/_cjs/auth/utils/http.js.map +1 -1
- package/_cjs/auth/utils/index.js.map +1 -1
- package/_cjs/auth/utils/jwt.js.map +1 -1
- package/_cjs/auth/utils/ws.js.map +1 -1
- package/_cjs/client/cdp.js.map +1 -1
- package/_cjs/client/end-user/endUser.js +21 -42
- package/_cjs/client/end-user/endUser.js.map +1 -1
- package/_cjs/client/end-user/endUser.types.js.map +1 -1
- package/_cjs/client/end-user/toEndUserAccount.js +18 -43
- package/_cjs/client/end-user/toEndUserAccount.js.map +1 -1
- package/_cjs/client/evm/evm.js.map +1 -1
- package/_cjs/client/evm/evm.types.js.map +1 -1
- package/_cjs/client/policies/index.js.map +1 -1
- package/_cjs/client/policies/policies.js.map +1 -1
- package/_cjs/client/policies/policies.types.js.map +1 -1
- package/_cjs/client/solana/index.js.map +1 -1
- package/_cjs/client/solana/solana.js.map +1 -1
- package/_cjs/client/solana/solana.types.js.map +1 -1
- package/_cjs/client/webhooks/webhooks.js.map +1 -1
- package/_cjs/constants.js.map +1 -1
- package/_cjs/errors.js.map +1 -1
- package/_cjs/index.js.map +1 -1
- package/_cjs/openapi-client/cdpApiClient.js.map +1 -1
- package/_cjs/openapi-client/errors.js.map +1 -1
- package/_cjs/openapi-client/generated/accounts/accounts.js +50 -0
- package/_cjs/openapi-client/generated/accounts/accounts.js.map +1 -0
- package/_cjs/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +526 -46
- package/_cjs/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js.map +1 -1
- package/_cjs/openapi-client/generated/deposit-destinations/deposit-destinations.js +34 -0
- package/_cjs/openapi-client/generated/deposit-destinations/deposit-destinations.js.map +1 -0
- package/_cjs/openapi-client/generated/end-user-account-management/end-user-account-management.js +132 -0
- package/_cjs/openapi-client/generated/end-user-account-management/end-user-account-management.js.map +1 -0
- package/_cjs/openapi-client/generated/end-user-accounts/end-user-accounts.js +228 -74
- 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 +12 -12
- 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 +10 -10
- 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 +2 -2
- 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.map +1 -1
- package/_cjs/openapi-client/generated/onchain-data/onchain-data.js.map +1 -1
- package/_cjs/openapi-client/generated/onramp/onramp.js.map +1 -1
- package/_cjs/openapi-client/generated/payment-methods/payment-methods.js +28 -0
- package/_cjs/openapi-client/generated/payment-methods/payment-methods.js.map +1 -0
- package/_cjs/openapi-client/generated/policy-engine/policy-engine.js +4 -4
- package/_cjs/openapi-client/generated/policy-engine/policy-engine.js.map +1 -1
- package/_cjs/openapi-client/generated/solana-accounts/solana-accounts.js +11 -11
- 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 +1 -1
- package/_cjs/openapi-client/generated/sql-api/sql-api.js.map +1 -1
- package/_cjs/openapi-client/generated/transfers/transfers.js +87 -0
- package/_cjs/openapi-client/generated/transfers/transfers.js.map +1 -0
- package/_cjs/openapi-client/generated/webhooks/webhooks.js +1 -1
- package/_cjs/openapi-client/generated/webhooks/webhooks.js.map +1 -1
- package/_cjs/openapi-client/generated/x402-facilitator/x402-facilitator.js +3 -3
- package/_cjs/openapi-client/generated/x402-facilitator/x402-facilitator.js.map +1 -1
- package/_cjs/openapi-client/index.js +7 -3
- package/_cjs/openapi-client/index.js.map +1 -1
- package/_cjs/policies/evmSchema.js +54 -1
- package/_cjs/policies/evmSchema.js.map +1 -1
- package/_cjs/policies/solanaSchema.js.map +1 -1
- package/_cjs/policies/types.js +2 -0
- package/_cjs/policies/types.js.map +1 -1
- package/_cjs/spend-permissions/constants.js.map +1 -1
- package/_cjs/spend-permissions/types.js.map +1 -1
- package/_cjs/spend-permissions/utils.js.map +1 -1
- package/_cjs/types/calls.js.map +1 -1
- package/_cjs/types/contract.js.map +1 -1
- package/_cjs/types/misc.js.map +1 -1
- package/_cjs/types/multicall.js.map +1 -1
- package/_cjs/types/utils.js.map +1 -1
- package/_cjs/utils/bigint.js.map +1 -1
- package/_cjs/utils/export.js.map +1 -1
- package/_cjs/utils/hash.js.map +1 -1
- package/_cjs/utils/serializeTransaction.js.map +1 -1
- package/_cjs/utils/sortKeys.js.map +1 -1
- package/_cjs/utils/uuidV4.js.map +1 -1
- package/_cjs/utils/wait.js.map +1 -1
- package/_cjs/version.js +1 -1
- package/_cjs/version.js.map +1 -1
- package/_esm/accounts/evm/chainToNetworkMapper.js.map +1 -1
- package/_esm/accounts/evm/eip6492.js.map +1 -1
- package/_esm/accounts/evm/getBaseNodeRpcUrl.js.map +1 -1
- package/_esm/accounts/evm/networkCapabilities.js.map +1 -1
- package/_esm/accounts/evm/networkToChainResolver.js.map +1 -1
- package/_esm/accounts/evm/resolveViemClients.js.map +1 -1
- package/_esm/accounts/evm/toEvmDelegatedAccount.js.map +1 -1
- package/_esm/accounts/evm/toEvmServerAccount.js.map +1 -1
- package/_esm/accounts/evm/toEvmSmartAccount.js.map +1 -1
- package/_esm/accounts/evm/toNetworkScopedEvmServerAccount.js.map +1 -1
- package/_esm/accounts/evm/toNetworkScopedEvmSmartAccount.js.map +1 -1
- package/_esm/accounts/evm/types.js.map +1 -1
- package/_esm/accounts/solana/toSolanaAccount.js.map +1 -1
- package/_esm/accounts/solana/types.js.map +1 -1
- package/_esm/actions/evm/getUserOperation.js.map +1 -1
- package/_esm/actions/evm/listSpendPermissions.js.map +1 -1
- package/_esm/actions/evm/listTokenBalances.js.map +1 -1
- package/_esm/actions/evm/requestFaucet.js.map +1 -1
- package/_esm/actions/evm/sendTransaction.js.map +1 -1
- package/_esm/actions/evm/sendUserOperation.js.map +1 -1
- package/_esm/actions/evm/signAndWrapTypedDataForSmartAccount.js.map +1 -1
- package/_esm/actions/evm/spend-permissions/account.use.js.map +1 -1
- package/_esm/actions/evm/spend-permissions/resolveSpendPermission.js.map +1 -1
- package/_esm/actions/evm/spend-permissions/smartAccount.use.js.map +1 -1
- package/_esm/actions/evm/spend-permissions/types.js.map +1 -1
- package/_esm/actions/evm/swap/createSwapQuote.js.map +1 -1
- package/_esm/actions/evm/swap/getSwapPrice.js.map +1 -1
- package/_esm/actions/evm/swap/sendSwapOperation.js.map +1 -1
- package/_esm/actions/evm/swap/sendSwapTransaction.js.map +1 -1
- package/_esm/actions/evm/swap/types.js.map +1 -1
- package/_esm/actions/evm/transfer/accountTransferStrategy.js.map +1 -1
- package/_esm/actions/evm/transfer/smartAccountTransferStrategy.js.map +1 -1
- package/_esm/actions/evm/transfer/transfer.js.map +1 -1
- package/_esm/actions/evm/transfer/transferWithViem.js.map +1 -1
- package/_esm/actions/evm/transfer/types.js.map +1 -1
- package/_esm/actions/evm/transfer/utils.js.map +1 -1
- package/_esm/actions/evm/types.js.map +1 -1
- package/_esm/actions/evm/waitForEvmEip7702DelegationStatus.js.map +1 -1
- package/_esm/actions/evm/waitForUserOperation.js.map +1 -1
- package/_esm/actions/solana/constants.js.map +1 -1
- package/_esm/actions/solana/requestFaucet.js.map +1 -1
- package/_esm/actions/solana/rpc.js.map +1 -1
- package/_esm/actions/solana/sendTransaction.js.map +1 -1
- package/_esm/actions/solana/signMessage.js.map +1 -1
- package/_esm/actions/solana/signTransaction.js.map +1 -1
- package/_esm/actions/solana/transfer.js.map +1 -1
- package/_esm/actions/solana/types.js.map +1 -1
- package/_esm/actions/solana/utils.js.map +1 -1
- package/_esm/actions/webhooks/createWebhookSubscription.js.map +1 -1
- package/_esm/actions/webhooks/index.js.map +1 -1
- package/_esm/analytics.js.map +1 -1
- package/_esm/auth/errors.js.map +1 -1
- package/_esm/auth/hooks/axios/index.js.map +1 -1
- package/_esm/auth/hooks/axios/withAuth.js.map +1 -1
- package/_esm/auth/index.js.map +1 -1
- package/_esm/auth/utils/hash.js.map +1 -1
- package/_esm/auth/utils/http.js.map +1 -1
- package/_esm/auth/utils/index.js.map +1 -1
- package/_esm/auth/utils/jwt.js.map +1 -1
- package/_esm/auth/utils/ws.js.map +1 -1
- package/_esm/client/cdp.js.map +1 -1
- package/_esm/client/end-user/endUser.js +21 -42
- package/_esm/client/end-user/endUser.js.map +1 -1
- package/_esm/client/end-user/endUser.types.js.map +1 -1
- package/_esm/client/end-user/toEndUserAccount.js +18 -43
- package/_esm/client/end-user/toEndUserAccount.js.map +1 -1
- package/_esm/client/evm/evm.js.map +1 -1
- package/_esm/client/evm/evm.types.js.map +1 -1
- package/_esm/client/policies/index.js.map +1 -1
- package/_esm/client/policies/policies.js.map +1 -1
- package/_esm/client/policies/policies.types.js.map +1 -1
- package/_esm/client/solana/index.js.map +1 -1
- package/_esm/client/solana/solana.js.map +1 -1
- package/_esm/client/solana/solana.types.js.map +1 -1
- package/_esm/client/webhooks/webhooks.js.map +1 -1
- package/_esm/constants.js.map +1 -1
- package/_esm/errors.js.map +1 -1
- package/_esm/index.js.map +1 -1
- package/_esm/openapi-client/cdpApiClient.js.map +1 -1
- package/_esm/openapi-client/errors.js.map +1 -1
- package/_esm/openapi-client/generated/accounts/accounts.js +42 -0
- package/_esm/openapi-client/generated/accounts/accounts.js.map +1 -0
- package/_esm/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +522 -43
- package/_esm/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js.map +1 -1
- package/_esm/openapi-client/generated/deposit-destinations/deposit-destinations.js +28 -0
- package/_esm/openapi-client/generated/deposit-destinations/deposit-destinations.js.map +1 -0
- package/_esm/openapi-client/generated/end-user-account-management/end-user-account-management.js +120 -0
- package/_esm/openapi-client/generated/end-user-account-management/end-user-account-management.js.map +1 -0
- package/_esm/openapi-client/generated/end-user-accounts/end-user-accounts.js +211 -64
- 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 +12 -12
- 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 +10 -10
- 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 +2 -2
- 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.map +1 -1
- package/_esm/openapi-client/generated/onchain-data/onchain-data.js.map +1 -1
- package/_esm/openapi-client/generated/onramp/onramp.js.map +1 -1
- package/_esm/openapi-client/generated/payment-methods/payment-methods.js +23 -0
- package/_esm/openapi-client/generated/payment-methods/payment-methods.js.map +1 -0
- package/_esm/openapi-client/generated/policy-engine/policy-engine.js +4 -4
- package/_esm/openapi-client/generated/policy-engine/policy-engine.js.map +1 -1
- package/_esm/openapi-client/generated/solana-accounts/solana-accounts.js +11 -11
- 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 +1 -1
- package/_esm/openapi-client/generated/sql-api/sql-api.js.map +1 -1
- package/_esm/openapi-client/generated/transfers/transfers.js +79 -0
- package/_esm/openapi-client/generated/transfers/transfers.js.map +1 -0
- package/_esm/openapi-client/generated/webhooks/webhooks.js +1 -1
- package/_esm/openapi-client/generated/webhooks/webhooks.js.map +1 -1
- package/_esm/openapi-client/generated/x402-facilitator/x402-facilitator.js +3 -3
- package/_esm/openapi-client/generated/x402-facilitator/x402-facilitator.js.map +1 -1
- package/_esm/openapi-client/index.js +7 -3
- package/_esm/openapi-client/index.js.map +1 -1
- package/_esm/policies/evmSchema.js +52 -0
- package/_esm/policies/evmSchema.js.map +1 -1
- package/_esm/policies/solanaSchema.js.map +1 -1
- package/_esm/policies/types.js +3 -1
- package/_esm/policies/types.js.map +1 -1
- package/_esm/spend-permissions/constants.js.map +1 -1
- package/_esm/spend-permissions/types.js.map +1 -1
- package/_esm/spend-permissions/utils.js.map +1 -1
- package/_esm/types/calls.js.map +1 -1
- package/_esm/types/contract.js.map +1 -1
- package/_esm/types/misc.js.map +1 -1
- package/_esm/types/multicall.js.map +1 -1
- package/_esm/types/utils.js.map +1 -1
- package/_esm/utils/bigint.js.map +1 -1
- package/_esm/utils/export.js.map +1 -1
- package/_esm/utils/hash.js.map +1 -1
- package/_esm/utils/serializeTransaction.js.map +1 -1
- package/_esm/utils/sortKeys.js.map +1 -1
- package/_esm/utils/uuidV4.js.map +1 -1
- package/_esm/utils/wait.js.map +1 -1
- package/_esm/version.js +1 -1
- package/_esm/version.js.map +1 -1
- package/_types/accounts/evm/chainToNetworkMapper.d.ts.map +1 -1
- package/_types/accounts/evm/eip6492.d.ts.map +1 -1
- package/_types/accounts/evm/getBaseNodeRpcUrl.d.ts.map +1 -1
- package/_types/accounts/evm/networkCapabilities.d.ts.map +1 -1
- package/_types/accounts/evm/networkToChainResolver.d.ts.map +1 -1
- package/_types/accounts/evm/resolveViemClients.d.ts.map +1 -1
- package/_types/accounts/evm/toEvmDelegatedAccount.d.ts.map +1 -1
- package/_types/accounts/evm/toEvmServerAccount.d.ts.map +1 -1
- package/_types/accounts/evm/toEvmSmartAccount.d.ts.map +1 -1
- package/_types/accounts/evm/toNetworkScopedEvmServerAccount.d.ts.map +1 -1
- package/_types/accounts/evm/toNetworkScopedEvmSmartAccount.d.ts.map +1 -1
- package/_types/accounts/evm/types.d.ts.map +1 -1
- package/_types/accounts/solana/toSolanaAccount.d.ts.map +1 -1
- package/_types/accounts/solana/types.d.ts.map +1 -1
- package/_types/actions/evm/getUserOperation.d.ts.map +1 -1
- package/_types/actions/evm/listSpendPermissions.d.ts.map +1 -1
- package/_types/actions/evm/listTokenBalances.d.ts.map +1 -1
- package/_types/actions/evm/requestFaucet.d.ts.map +1 -1
- package/_types/actions/evm/sendTransaction.d.ts.map +1 -1
- package/_types/actions/evm/sendUserOperation.d.ts.map +1 -1
- package/_types/actions/evm/signAndWrapTypedDataForSmartAccount.d.ts.map +1 -1
- package/_types/actions/evm/spend-permissions/account.use.d.ts.map +1 -1
- package/_types/actions/evm/spend-permissions/resolveSpendPermission.d.ts.map +1 -1
- package/_types/actions/evm/spend-permissions/smartAccount.use.d.ts.map +1 -1
- package/_types/actions/evm/spend-permissions/types.d.ts.map +1 -1
- package/_types/actions/evm/swap/createSwapQuote.d.ts.map +1 -1
- package/_types/actions/evm/swap/getSwapPrice.d.ts.map +1 -1
- package/_types/actions/evm/swap/sendSwapOperation.d.ts.map +1 -1
- package/_types/actions/evm/swap/sendSwapTransaction.d.ts.map +1 -1
- package/_types/actions/evm/swap/types.d.ts.map +1 -1
- package/_types/actions/evm/transfer/accountTransferStrategy.d.ts.map +1 -1
- package/_types/actions/evm/transfer/smartAccountTransferStrategy.d.ts.map +1 -1
- package/_types/actions/evm/transfer/transfer.d.ts.map +1 -1
- package/_types/actions/evm/transfer/transferWithViem.d.ts.map +1 -1
- package/_types/actions/evm/transfer/types.d.ts.map +1 -1
- package/_types/actions/evm/transfer/utils.d.ts.map +1 -1
- package/_types/actions/evm/types.d.ts.map +1 -1
- package/_types/actions/evm/waitForEvmEip7702DelegationStatus.d.ts.map +1 -1
- package/_types/actions/evm/waitForUserOperation.d.ts.map +1 -1
- package/_types/actions/solana/constants.d.ts.map +1 -1
- package/_types/actions/solana/requestFaucet.d.ts.map +1 -1
- package/_types/actions/solana/rpc.d.ts.map +1 -1
- package/_types/actions/solana/sendTransaction.d.ts.map +1 -1
- package/_types/actions/solana/signMessage.d.ts.map +1 -1
- package/_types/actions/solana/signTransaction.d.ts.map +1 -1
- package/_types/actions/solana/transfer.d.ts.map +1 -1
- package/_types/actions/solana/types.d.ts.map +1 -1
- package/_types/actions/solana/utils.d.ts.map +1 -1
- package/_types/actions/webhooks/createWebhookSubscription.d.ts.map +1 -1
- package/_types/actions/webhooks/index.d.ts.map +1 -1
- package/_types/analytics.d.ts.map +1 -1
- package/_types/auth/errors.d.ts.map +1 -1
- package/_types/auth/hooks/axios/index.d.ts.map +1 -1
- package/_types/auth/hooks/axios/withAuth.d.ts.map +1 -1
- package/_types/auth/index.d.ts.map +1 -1
- package/_types/auth/utils/hash.d.ts.map +1 -1
- package/_types/auth/utils/http.d.ts.map +1 -1
- package/_types/auth/utils/index.d.ts.map +1 -1
- package/_types/auth/utils/jwt.d.ts.map +1 -1
- package/_types/auth/utils/ws.d.ts.map +1 -1
- package/_types/client/cdp.d.ts.map +1 -1
- package/_types/client/end-user/endUser.d.ts.map +1 -1
- package/_types/client/end-user/endUser.types.d.ts +63 -4
- package/_types/client/end-user/endUser.types.d.ts.map +1 -1
- package/_types/client/end-user/toEndUserAccount.d.ts.map +1 -1
- package/_types/client/evm/evm.d.ts.map +1 -1
- package/_types/client/evm/evm.types.d.ts.map +1 -1
- package/_types/client/policies/index.d.ts.map +1 -1
- package/_types/client/policies/policies.d.ts.map +1 -1
- package/_types/client/policies/policies.types.d.ts.map +1 -1
- package/_types/client/solana/index.d.ts.map +1 -1
- package/_types/client/solana/solana.d.ts.map +1 -1
- package/_types/client/solana/solana.types.d.ts.map +1 -1
- package/_types/client/webhooks/webhooks.d.ts.map +1 -1
- package/_types/constants.d.ts.map +1 -1
- package/_types/errors.d.ts.map +1 -1
- package/_types/index.d.ts.map +1 -1
- package/_types/openapi-client/cdpApiClient.d.ts.map +1 -1
- package/_types/openapi-client/errors.d.ts.map +1 -1
- package/_types/openapi-client/generated/accounts/accounts.d.ts +42 -0
- package/_types/openapi-client/generated/accounts/accounts.d.ts.map +1 -0
- package/_types/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts +1933 -269
- package/_types/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts.map +1 -1
- package/_types/openapi-client/generated/deposit-destinations/deposit-destinations.d.ts +30 -0
- package/_types/openapi-client/generated/deposit-destinations/deposit-destinations.d.ts.map +1 -0
- package/_types/openapi-client/generated/end-user-account-management/end-user-account-management.d.ts +91 -0
- package/_types/openapi-client/generated/end-user-account-management/end-user-account-management.d.ts.map +1 -0
- package/_types/openapi-client/generated/end-user-accounts/end-user-accounts.d.ts +142 -60
- 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 +12 -12
- 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 +10 -10
- 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 +2 -2
- 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.map +1 -1
- package/_types/openapi-client/generated/faucets/faucets.d.ts.map +1 -1
- package/_types/openapi-client/generated/onchain-data/onchain-data.d.ts.map +1 -1
- package/_types/openapi-client/generated/onramp/onramp.d.ts.map +1 -1
- package/_types/openapi-client/generated/payment-methods/payment-methods.d.ts +31 -0
- package/_types/openapi-client/generated/payment-methods/payment-methods.d.ts.map +1 -0
- package/_types/openapi-client/generated/policy-engine/policy-engine.d.ts +4 -4
- 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 +11 -11
- 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.map +1 -1
- package/_types/openapi-client/generated/sql-api/sql-api.d.ts +1 -1
- package/_types/openapi-client/generated/sql-api/sql-api.d.ts.map +1 -1
- package/_types/openapi-client/generated/transfers/transfers.d.ts +74 -0
- package/_types/openapi-client/generated/transfers/transfers.d.ts.map +1 -0
- package/_types/openapi-client/generated/webhooks/webhooks.d.ts +1 -1
- package/_types/openapi-client/generated/webhooks/webhooks.d.ts.map +1 -1
- package/_types/openapi-client/generated/x402-facilitator/x402-facilitator.d.ts +3 -3
- package/_types/openapi-client/generated/x402-facilitator/x402-facilitator.d.ts.map +1 -1
- package/_types/openapi-client/index.d.ts +14 -10
- package/_types/openapi-client/index.d.ts.map +1 -1
- package/_types/policies/evmSchema.d.ts +884 -39
- package/_types/policies/evmSchema.d.ts.map +1 -1
- package/_types/policies/solanaSchema.d.ts +20 -20
- package/_types/policies/solanaSchema.d.ts.map +1 -1
- package/_types/policies/types.d.ts +1996 -629
- package/_types/policies/types.d.ts.map +1 -1
- package/_types/spend-permissions/constants.d.ts.map +1 -1
- package/_types/spend-permissions/types.d.ts.map +1 -1
- package/_types/spend-permissions/utils.d.ts.map +1 -1
- package/_types/types/calls.d.ts.map +1 -1
- package/_types/types/contract.d.ts.map +1 -1
- package/_types/types/misc.d.ts.map +1 -1
- package/_types/types/multicall.d.ts.map +1 -1
- package/_types/types/utils.d.ts.map +1 -1
- package/_types/utils/bigint.d.ts.map +1 -1
- package/_types/utils/export.d.ts.map +1 -1
- package/_types/utils/hash.d.ts.map +1 -1
- package/_types/utils/serializeTransaction.d.ts.map +1 -1
- package/_types/utils/sortKeys.d.ts.map +1 -1
- package/_types/utils/uuidV4.d.ts.map +1 -1
- package/_types/utils/wait.d.ts.map +1 -1
- package/_types/version.d.ts +1 -1
- package/_types/version.d.ts.map +1 -1
- package/package.json +24 -3
- package/{auth → src/auth}/README.md +3 -3
- package/{client → src/client}/end-user/endUser.ts +113 -69
- package/{client → src/client}/end-user/endUser.types.ts +63 -4
- package/{client → src/client}/end-user/toEndUserAccount.ts +103 -64
- package/src/openapi-client/generated/accounts/accounts.ts +103 -0
- package/{openapi-client → src/openapi-client}/generated/coinbaseDeveloperPlatformAPIs.schemas.ts +2368 -363
- package/src/openapi-client/generated/deposit-destinations/deposit-destinations.ts +72 -0
- package/{openapi-client/generated/end-user-accounts/end-user-accounts.ts → src/openapi-client/generated/end-user-account-management/end-user-account-management.ts} +6 -6
- package/{openapi-client/generated/embedded-wallets/embedded-wallets.ts → src/openapi-client/generated/end-user-accounts/end-user-accounts.ts} +11 -11
- package/{openapi-client → src/openapi-client}/generated/evm-accounts/evm-accounts.ts +12 -12
- package/{openapi-client → src/openapi-client}/generated/evm-smart-accounts/evm-smart-accounts.ts +10 -10
- package/{openapi-client → src/openapi-client}/generated/evm-swaps/evm-swaps.ts +2 -2
- package/src/openapi-client/generated/payment-methods/payment-methods.ts +53 -0
- package/{openapi-client → src/openapi-client}/generated/policy-engine/policy-engine.ts +4 -4
- package/{openapi-client → src/openapi-client}/generated/solana-accounts/solana-accounts.ts +11 -11
- package/{openapi-client → src/openapi-client}/generated/sql-api/sql-api.ts +1 -1
- package/src/openapi-client/generated/transfers/transfers.ts +131 -0
- package/{openapi-client → src/openapi-client}/generated/webhooks/webhooks.ts +1 -1
- package/{openapi-client → src/openapi-client}/generated/x402-facilitator/x402-facilitator.ts +3 -3
- package/{openapi-client → src/openapi-client}/index.ts +7 -3
- package/{policies → src/policies}/evmSchema.ts +63 -0
- package/{policies → src/policies}/types.ts +4 -0
- package/src/version.ts +1 -0
- package/CHANGELOG.md +0 -631
- package/_cjs/openapi-client/generated/embedded-wallets/embedded-wallets.js +0 -286
- package/_cjs/openapi-client/generated/embedded-wallets/embedded-wallets.js.map +0 -1
- package/_esm/openapi-client/generated/embedded-wallets/embedded-wallets.js +0 -267
- package/_esm/openapi-client/generated/embedded-wallets/embedded-wallets.js.map +0 -1
- package/_types/openapi-client/generated/embedded-wallets/embedded-wallets.d.ts +0 -173
- package/_types/openapi-client/generated/embedded-wallets/embedded-wallets.d.ts.map +0 -1
- package/version.ts +0 -1
- /package/{accounts → src/accounts}/evm/chainToNetworkMapper.ts +0 -0
- /package/{accounts → src/accounts}/evm/eip6492.ts +0 -0
- /package/{accounts → src/accounts}/evm/getBaseNodeRpcUrl.ts +0 -0
- /package/{accounts → src/accounts}/evm/networkCapabilities.ts +0 -0
- /package/{accounts → src/accounts}/evm/networkToChainResolver.ts +0 -0
- /package/{accounts → src/accounts}/evm/resolveViemClients.ts +0 -0
- /package/{accounts → src/accounts}/evm/toEvmDelegatedAccount.ts +0 -0
- /package/{accounts → src/accounts}/evm/toEvmServerAccount.ts +0 -0
- /package/{accounts → src/accounts}/evm/toEvmSmartAccount.ts +0 -0
- /package/{accounts → src/accounts}/evm/toNetworkScopedEvmServerAccount.ts +0 -0
- /package/{accounts → src/accounts}/evm/toNetworkScopedEvmSmartAccount.ts +0 -0
- /package/{accounts → src/accounts}/evm/types.ts +0 -0
- /package/{accounts → src/accounts}/solana/toSolanaAccount.ts +0 -0
- /package/{accounts → src/accounts}/solana/types.ts +0 -0
- /package/{actions → src/actions}/evm/getUserOperation.ts +0 -0
- /package/{actions → src/actions}/evm/listSpendPermissions.ts +0 -0
- /package/{actions → src/actions}/evm/listTokenBalances.ts +0 -0
- /package/{actions → src/actions}/evm/requestFaucet.ts +0 -0
- /package/{actions → src/actions}/evm/sendTransaction.ts +0 -0
- /package/{actions → src/actions}/evm/sendUserOperation.ts +0 -0
- /package/{actions → src/actions}/evm/signAndWrapTypedDataForSmartAccount.ts +0 -0
- /package/{actions → src/actions}/evm/spend-permissions/account.use.ts +0 -0
- /package/{actions → src/actions}/evm/spend-permissions/resolveSpendPermission.ts +0 -0
- /package/{actions → src/actions}/evm/spend-permissions/smartAccount.use.ts +0 -0
- /package/{actions → src/actions}/evm/spend-permissions/types.ts +0 -0
- /package/{actions → src/actions}/evm/swap/createSwapQuote.ts +0 -0
- /package/{actions → src/actions}/evm/swap/getSwapPrice.ts +0 -0
- /package/{actions → src/actions}/evm/swap/sendSwapOperation.ts +0 -0
- /package/{actions → src/actions}/evm/swap/sendSwapTransaction.ts +0 -0
- /package/{actions → src/actions}/evm/swap/types.ts +0 -0
- /package/{actions → src/actions}/evm/transfer/accountTransferStrategy.ts +0 -0
- /package/{actions → src/actions}/evm/transfer/smartAccountTransferStrategy.ts +0 -0
- /package/{actions → src/actions}/evm/transfer/transfer.ts +0 -0
- /package/{actions → src/actions}/evm/transfer/transferWithViem.ts +0 -0
- /package/{actions → src/actions}/evm/transfer/types.ts +0 -0
- /package/{actions → src/actions}/evm/transfer/utils.ts +0 -0
- /package/{actions → src/actions}/evm/types.ts +0 -0
- /package/{actions → src/actions}/evm/waitForEvmEip7702DelegationStatus.ts +0 -0
- /package/{actions → src/actions}/evm/waitForUserOperation.ts +0 -0
- /package/{actions → src/actions}/solana/constants.ts +0 -0
- /package/{actions → src/actions}/solana/requestFaucet.ts +0 -0
- /package/{actions → src/actions}/solana/rpc.ts +0 -0
- /package/{actions → src/actions}/solana/sendTransaction.ts +0 -0
- /package/{actions → src/actions}/solana/signMessage.ts +0 -0
- /package/{actions → src/actions}/solana/signTransaction.ts +0 -0
- /package/{actions → src/actions}/solana/transfer.ts +0 -0
- /package/{actions → src/actions}/solana/types.ts +0 -0
- /package/{actions → src/actions}/solana/utils.ts +0 -0
- /package/{actions → src/actions}/webhooks/createWebhookSubscription.ts +0 -0
- /package/{actions → src/actions}/webhooks/index.ts +0 -0
- /package/{analytics.ts → src/analytics.ts} +0 -0
- /package/{auth → src/auth}/errors.ts +0 -0
- /package/{auth → src/auth}/hooks/axios/index.ts +0 -0
- /package/{auth → src/auth}/hooks/axios/withAuth.ts +0 -0
- /package/{auth → src/auth}/index.ts +0 -0
- /package/{auth → src/auth}/utils/hash.ts +0 -0
- /package/{auth → src/auth}/utils/http.ts +0 -0
- /package/{auth → src/auth}/utils/index.ts +0 -0
- /package/{auth → src/auth}/utils/jwt.ts +0 -0
- /package/{auth → src/auth}/utils/ws.ts +0 -0
- /package/{client → src/client}/cdp.ts +0 -0
- /package/{client → src/client}/evm/evm.ts +0 -0
- /package/{client → src/client}/evm/evm.types.ts +0 -0
- /package/{client → src/client}/policies/index.ts +0 -0
- /package/{client → src/client}/policies/policies.ts +0 -0
- /package/{client → src/client}/policies/policies.types.ts +0 -0
- /package/{client → src/client}/solana/index.ts +0 -0
- /package/{client → src/client}/solana/solana.ts +0 -0
- /package/{client → src/client}/solana/solana.types.ts +0 -0
- /package/{client → src/client}/webhooks/webhooks.ts +0 -0
- /package/{constants.ts → src/constants.ts} +0 -0
- /package/{errors.ts → src/errors.ts} +0 -0
- /package/{index.ts → src/index.ts} +0 -0
- /package/{openapi-client → src/openapi-client}/cdpApiClient.ts +0 -0
- /package/{openapi-client → src/openapi-client}/errors.ts +0 -0
- /package/{openapi-client → src/openapi-client}/generated/evm-token-balances/evm-token-balances.ts +0 -0
- /package/{openapi-client → src/openapi-client}/generated/faucets/faucets.ts +0 -0
- /package/{openapi-client → src/openapi-client}/generated/onchain-data/onchain-data.ts +0 -0
- /package/{openapi-client → src/openapi-client}/generated/onramp/onramp.ts +0 -0
- /package/{openapi-client → src/openapi-client}/generated/solana-token-balances/solana-token-balances.ts +0 -0
- /package/{policies → src/policies}/solanaSchema.ts +0 -0
- /package/{spend-permissions → src/spend-permissions}/constants.ts +0 -0
- /package/{spend-permissions → src/spend-permissions}/types.ts +0 -0
- /package/{spend-permissions → src/spend-permissions}/utils.ts +0 -0
- /package/{types → src/types}/calls.ts +0 -0
- /package/{types → src/types}/contract.ts +0 -0
- /package/{types → src/types}/misc.ts +0 -0
- /package/{types → src/types}/multicall.ts +0 -0
- /package/{types → src/types}/utils.ts +0 -0
- /package/{utils → src/utils}/bigint.ts +0 -0
- /package/{utils → src/utils}/export.ts +0 -0
- /package/{utils → src/utils}/hash.ts +0 -0
- /package/{utils → src/utils}/serializeTransaction.ts +0 -0
- /package/{utils → src/utils}/sortKeys.ts +0 -0
- /package/{utils → src/utils}/uuidV4.ts +0 -0
- /package/{utils → src/utils}/wait.ts +0 -0
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v7.21.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Coinbase Developer Platform APIs
|
|
5
|
+
* The Coinbase Developer Platform APIs - leading the world's transition onchain.
|
|
6
|
+
* OpenAPI spec version: 2.0.0
|
|
7
|
+
*/
|
|
8
|
+
import type {
|
|
9
|
+
CreateDepositDestinationRequest,
|
|
10
|
+
DepositDestination,
|
|
11
|
+
DepositDestinationId,
|
|
12
|
+
ListDepositDestinations200,
|
|
13
|
+
ListDepositDestinationsParams,
|
|
14
|
+
} from "../coinbaseDeveloperPlatformAPIs.schemas.js";
|
|
15
|
+
|
|
16
|
+
import { cdpApiClient } from "../../cdpApiClient.js";
|
|
17
|
+
|
|
18
|
+
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* List deposit destinations. You can optionally filter the results by type, account ID, network, or cryptocurrency address. Results are sorted by creation date in descending order (newest first).
|
|
22
|
+
* @summary List deposit destinations
|
|
23
|
+
*/
|
|
24
|
+
export const listDepositDestinations = (
|
|
25
|
+
params?: ListDepositDestinationsParams,
|
|
26
|
+
options?: SecondParameter<typeof cdpApiClient<ListDepositDestinations200>>,
|
|
27
|
+
) => {
|
|
28
|
+
return cdpApiClient<ListDepositDestinations200>(
|
|
29
|
+
{ url: `/v2/deposit-destinations`, method: "GET", params },
|
|
30
|
+
options,
|
|
31
|
+
);
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Create a new deposit destination for an account. A deposit destination is a cryptocurrency address that can be used to receive funds. The address will be generated for the specified network.
|
|
35
|
+
* @summary Create deposit destination
|
|
36
|
+
*/
|
|
37
|
+
export const createDepositDestination = (
|
|
38
|
+
createDepositDestinationRequest: CreateDepositDestinationRequest,
|
|
39
|
+
options?: SecondParameter<typeof cdpApiClient<DepositDestination>>,
|
|
40
|
+
) => {
|
|
41
|
+
return cdpApiClient<DepositDestination>(
|
|
42
|
+
{
|
|
43
|
+
url: `/v2/deposit-destinations`,
|
|
44
|
+
method: "POST",
|
|
45
|
+
headers: { "Content-Type": "application/json" },
|
|
46
|
+
data: createDepositDestinationRequest,
|
|
47
|
+
},
|
|
48
|
+
options,
|
|
49
|
+
);
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* Get a specific deposit destination by its ID.
|
|
53
|
+
* @summary Get deposit destination
|
|
54
|
+
*/
|
|
55
|
+
export const getDepositDestinationById = (
|
|
56
|
+
depositDestinationId: DepositDestinationId,
|
|
57
|
+
options?: SecondParameter<typeof cdpApiClient<DepositDestination>>,
|
|
58
|
+
) => {
|
|
59
|
+
return cdpApiClient<DepositDestination>(
|
|
60
|
+
{ url: `/v2/deposit-destinations/${depositDestinationId}`, method: "GET" },
|
|
61
|
+
options,
|
|
62
|
+
);
|
|
63
|
+
};
|
|
64
|
+
export type ListDepositDestinationsResult = NonNullable<
|
|
65
|
+
Awaited<ReturnType<typeof listDepositDestinations>>
|
|
66
|
+
>;
|
|
67
|
+
export type CreateDepositDestinationResult = NonNullable<
|
|
68
|
+
Awaited<ReturnType<typeof createDepositDestination>>
|
|
69
|
+
>;
|
|
70
|
+
export type GetDepositDestinationByIdResult = NonNullable<
|
|
71
|
+
Awaited<ReturnType<typeof getDepositDestinationById>>
|
|
72
|
+
>;
|
|
@@ -29,7 +29,7 @@ type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
|
29
29
|
/**
|
|
30
30
|
* Creates an end user. An end user is an entity that can own CDP EVM accounts, EVM smart accounts, and/or Solana accounts. 1 or more authentication methods must be associated with an end user. By default, no accounts are created unless the optional `evmAccount` and/or `solanaAccount` fields are provided.
|
|
31
31
|
This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key.
|
|
32
|
-
* @summary Create
|
|
32
|
+
* @summary Create end user
|
|
33
33
|
*/
|
|
34
34
|
export const createEndUser = (
|
|
35
35
|
createEndUserBody: CreateEndUserBody,
|
|
@@ -80,7 +80,7 @@ export const validateEndUserAccessToken = (
|
|
|
80
80
|
* Gets an end user by ID.
|
|
81
81
|
|
|
82
82
|
This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key.
|
|
83
|
-
* @summary Get
|
|
83
|
+
* @summary Get end user
|
|
84
84
|
*/
|
|
85
85
|
export const getEndUser = (
|
|
86
86
|
userId: string,
|
|
@@ -118,7 +118,7 @@ export const lookupEndUser = (
|
|
|
118
118
|
/**
|
|
119
119
|
* Adds a new EVM EOA account to an existing end user. End users can have up to 10 EVM accounts.
|
|
120
120
|
This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key.
|
|
121
|
-
* @summary Add
|
|
121
|
+
* @summary Add EVM account to end user
|
|
122
122
|
*/
|
|
123
123
|
export const addEndUserEvmAccount = (
|
|
124
124
|
userId: string,
|
|
@@ -138,7 +138,7 @@ export const addEndUserEvmAccount = (
|
|
|
138
138
|
/**
|
|
139
139
|
* Creates an EVM smart account for an existing end user. The backend will create a new EVM EOA account to serve as the owner of the smart account.
|
|
140
140
|
This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key.
|
|
141
|
-
* @summary Add
|
|
141
|
+
* @summary Add EVM smart account to end user
|
|
142
142
|
*/
|
|
143
143
|
export const addEndUserEvmSmartAccount = (
|
|
144
144
|
userId: string,
|
|
@@ -158,7 +158,7 @@ export const addEndUserEvmSmartAccount = (
|
|
|
158
158
|
/**
|
|
159
159
|
* Adds a new Solana account to an existing end user. End users can have up to 10 Solana accounts.
|
|
160
160
|
This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key.
|
|
161
|
-
* @summary Add
|
|
161
|
+
* @summary Add Solana account to end user
|
|
162
162
|
*/
|
|
163
163
|
export const addEndUserSolanaAccount = (
|
|
164
164
|
userId: string,
|
|
@@ -179,7 +179,7 @@ export const addEndUserSolanaAccount = (
|
|
|
179
179
|
* Imports an existing private key for an end user into the developer's CDP Project. The private key must be encrypted using the CDP SDK's encryption scheme before being sent to this endpoint. 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.
|
|
180
180
|
|
|
181
181
|
This endpoint allows developers to import existing keys for their end users, supporting both EVM and Solana key types. The end user must have at least one authentication method configured.
|
|
182
|
-
* @summary Import
|
|
182
|
+
* @summary Import end user private key
|
|
183
183
|
*/
|
|
184
184
|
export const importEndUser = (
|
|
185
185
|
importEndUserBody: ImportEndUserBody,
|
|
@@ -62,7 +62,7 @@ type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
|
62
62
|
The transaction should be serialized as a hex string using [RLP](https://ethereum.org/en/developers/docs/data-structures-and-encoding/rlp/).
|
|
63
63
|
|
|
64
64
|
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.
|
|
65
|
-
* @summary Sign
|
|
65
|
+
* @summary Sign transaction via end user EVM account
|
|
66
66
|
*/
|
|
67
67
|
export const signEvmTransactionWithEndUserAccount = (
|
|
68
68
|
userId: string,
|
|
@@ -108,7 +108,7 @@ The transaction must be an [EIP-1559 dynamic fee transaction](https://github.com
|
|
|
108
108
|
- `value` *(Optional)*: The amount of ETH, in wei, to send with the transaction.
|
|
109
109
|
- `data` *(Optional)*: The data to send with the transaction; only used for contract calls.
|
|
110
110
|
- `accessList` *(Optional)*: The access list to use for the transaction.
|
|
111
|
-
* @summary Send
|
|
111
|
+
* @summary Send transaction via end user EVM account
|
|
112
112
|
*/
|
|
113
113
|
export const sendEvmTransactionWithEndUserAccount = (
|
|
114
114
|
userId: string,
|
|
@@ -155,7 +155,7 @@ export const sendEvmAssetWithEndUserAccount = (
|
|
|
155
155
|
* Signs an [EIP-191](https://eips.ethereum.org/EIPS/eip-191) message with the given end user EVM account.
|
|
156
156
|
|
|
157
157
|
Per the specification, the message in the request body is prepended with `0x19 <0x45 (E)> <thereum Signed Message:\n" + len(message)>` before being signed.
|
|
158
|
-
* @summary Sign
|
|
158
|
+
* @summary Sign EIP-191 message via end user EVM account
|
|
159
159
|
*/
|
|
160
160
|
export const signEvmMessageWithEndUserAccount = (
|
|
161
161
|
userId: string,
|
|
@@ -176,7 +176,7 @@ export const signEvmMessageWithEndUserAccount = (
|
|
|
176
176
|
};
|
|
177
177
|
/**
|
|
178
178
|
* Signs [EIP-712](https://eips.ethereum.org/EIPS/eip-712) typed data with the given end user EVM account.
|
|
179
|
-
* @summary Sign EIP-712 typed data
|
|
179
|
+
* @summary Sign EIP-712 typed data via end user EVM account
|
|
180
180
|
*/
|
|
181
181
|
export const signEvmTypedDataWithEndUserAccount = (
|
|
182
182
|
userId: string,
|
|
@@ -234,7 +234,7 @@ export const revokeDelegationForEndUser = (
|
|
|
234
234
|
* Creates an account-scoped delegation that allows a developer to sign on behalf of an end user for a single blockchain account (identified by its address) for the specified duration. The end user must be authenticated to authorize this delegation.
|
|
235
235
|
Multiple account-scoped delegations may exist concurrently for a single end user (one per canonical account address). Account-scoped and user-scoped delegations cannot coexist for the same user.
|
|
236
236
|
When the address corresponds to an EVM Smart Account, the delegation is scoped to the Smart Account's owner EOA rather than the Smart Account address itself. This means `/address/{smartAccountAddress}/delegation` and `/address/{ownerEoaAddress}/delegation` resolve to the same delegation, and the 409 `account_scoped_delegation_active` error may be returned when creating via either address if one already exists for the canonical owner.
|
|
237
|
-
* @summary Create account-scoped delegation for
|
|
237
|
+
* @summary Create account-scoped delegation for end user
|
|
238
238
|
*/
|
|
239
239
|
export const createDelegationForEndUserAccount = (
|
|
240
240
|
userId: string,
|
|
@@ -257,7 +257,7 @@ export const createDelegationForEndUserAccount = (
|
|
|
257
257
|
/**
|
|
258
258
|
* Returns the active account-scoped delegation for the specified end user account, if one exists. Useful for showing delegation status in a UI.
|
|
259
259
|
When the address corresponds to an EVM Smart Account, this returns the delegation for the Smart Account's owner EOA.
|
|
260
|
-
* @summary Get account-scoped delegation for
|
|
260
|
+
* @summary Get account-scoped delegation for end user
|
|
261
261
|
*/
|
|
262
262
|
export const getDelegationForEndUserAccount = (
|
|
263
263
|
userId: string,
|
|
@@ -277,7 +277,7 @@ export const getDelegationForEndUserAccount = (
|
|
|
277
277
|
/**
|
|
278
278
|
* Revokes the active account-scoped delegation for the specified end user account. Other account-scoped delegations for the same user are unaffected. This operation can be performed by the end user themselves or by a developer using their API key.
|
|
279
279
|
When the address corresponds to an EVM Smart Account, this revokes the delegation for the Smart Account's owner EOA.
|
|
280
|
-
* @summary Revoke account-scoped delegation for
|
|
280
|
+
* @summary Revoke account-scoped delegation for end user
|
|
281
281
|
*/
|
|
282
282
|
export const revokeDelegationForEndUserAccount = (
|
|
283
283
|
userId: string,
|
|
@@ -328,7 +328,7 @@ export const createEvmEip7702DelegationWithEndUserAccount = (
|
|
|
328
328
|
};
|
|
329
329
|
/**
|
|
330
330
|
* Prepares, signs, and sends a user operation for an end user's Smart Account.
|
|
331
|
-
* @summary Send
|
|
331
|
+
* @summary Send user operation for end user Smart Account
|
|
332
332
|
*/
|
|
333
333
|
export const sendUserOperationWithEndUserAccount = (
|
|
334
334
|
userId: string,
|
|
@@ -351,7 +351,7 @@ export const sendUserOperationWithEndUserAccount = (
|
|
|
351
351
|
/**
|
|
352
352
|
* Signs an arbitrary Base64 encoded message with the given Solana account.
|
|
353
353
|
**WARNING:** Never sign a message that you didn't generate as it may put your funds at risk.
|
|
354
|
-
* @summary Sign
|
|
354
|
+
* @summary Sign Base64-encoded message
|
|
355
355
|
*/
|
|
356
356
|
export const signSolanaMessageWithEndUserAccount = (
|
|
357
357
|
userId: string,
|
|
@@ -378,7 +378,7 @@ The following transaction types are supported:
|
|
|
378
378
|
* [Legacy transactions](https://solana-labs.github.io/solana-web3.js/classes/Transaction.html)
|
|
379
379
|
* [Versioned transactions](https://solana-labs.github.io/solana-web3.js/classes/VersionedTransaction.html)
|
|
380
380
|
The developer is responsible for ensuring that the unsigned transaction is valid, as the API will not validate the transaction.
|
|
381
|
-
* @summary Sign
|
|
381
|
+
* @summary Sign transaction via end user Solana account
|
|
382
382
|
*/
|
|
383
383
|
export const signSolanaTransactionWithEndUserAccount = (
|
|
384
384
|
userId: string,
|
|
@@ -412,7 +412,7 @@ The following Solana networks are supported:
|
|
|
412
412
|
* `solana` - Solana Mainnet
|
|
413
413
|
* `solana-devnet` - Solana Devnet
|
|
414
414
|
The developer is responsible for ensuring that the unsigned transaction is valid, as the API will not validate the transaction.
|
|
415
|
-
* @summary Send
|
|
415
|
+
* @summary Send transaction via end user Solana account
|
|
416
416
|
*/
|
|
417
417
|
export const sendSolanaTransactionWithEndUserAccount = (
|
|
418
418
|
userId: string,
|
|
@@ -51,7 +51,7 @@ export const listEvmAccounts = (
|
|
|
51
51
|
};
|
|
52
52
|
/**
|
|
53
53
|
* Creates a new EVM account.
|
|
54
|
-
* @summary Create
|
|
54
|
+
* @summary Create EVM account
|
|
55
55
|
*/
|
|
56
56
|
export const createEvmAccount = (
|
|
57
57
|
createEvmAccountBody?: CreateEvmAccountBody,
|
|
@@ -69,7 +69,7 @@ export const createEvmAccount = (
|
|
|
69
69
|
};
|
|
70
70
|
/**
|
|
71
71
|
* Gets an EVM account by its address.
|
|
72
|
-
* @summary Get
|
|
72
|
+
* @summary Get EVM account by address
|
|
73
73
|
*/
|
|
74
74
|
export const getEvmAccount = (
|
|
75
75
|
address: string,
|
|
@@ -79,7 +79,7 @@ export const getEvmAccount = (
|
|
|
79
79
|
};
|
|
80
80
|
/**
|
|
81
81
|
* Updates an existing EVM account. Use this to update the account's name or account-level policy.
|
|
82
|
-
* @summary Update
|
|
82
|
+
* @summary Update EVM account
|
|
83
83
|
*/
|
|
84
84
|
export const updateEvmAccount = (
|
|
85
85
|
address: string,
|
|
@@ -98,7 +98,7 @@ export const updateEvmAccount = (
|
|
|
98
98
|
};
|
|
99
99
|
/**
|
|
100
100
|
* Gets an EVM account by its name.
|
|
101
|
-
* @summary Get
|
|
101
|
+
* @summary Get EVM account by name
|
|
102
102
|
*/
|
|
103
103
|
export const getEvmAccountByName = (
|
|
104
104
|
name: string,
|
|
@@ -136,7 +136,7 @@ The transaction must be an [EIP-1559 dynamic fee transaction](https://github.com
|
|
|
136
136
|
- `value` *(Optional)*: The amount of ETH, in wei, to send with the transaction.
|
|
137
137
|
- `data` *(Optional)*: The data to send with the transaction; only used for contract calls.
|
|
138
138
|
- `accessList` *(Optional)*: The access list to use for the transaction.
|
|
139
|
-
* @summary Send
|
|
139
|
+
* @summary Send transaction
|
|
140
140
|
*/
|
|
141
141
|
export const sendEvmTransaction = (
|
|
142
142
|
address: string,
|
|
@@ -158,7 +158,7 @@ export const sendEvmTransaction = (
|
|
|
158
158
|
The transaction should be serialized as a hex string using [RLP](https://ethereum.org/en/developers/docs/data-structures-and-encoding/rlp/).
|
|
159
159
|
|
|
160
160
|
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.
|
|
161
|
-
* @summary Sign
|
|
161
|
+
* @summary Sign transaction
|
|
162
162
|
*/
|
|
163
163
|
export const signEvmTransaction = (
|
|
164
164
|
address: string,
|
|
@@ -177,7 +177,7 @@ export const signEvmTransaction = (
|
|
|
177
177
|
};
|
|
178
178
|
/**
|
|
179
179
|
* Signs an arbitrary 32 byte hash with the given EVM account.
|
|
180
|
-
* @summary Sign
|
|
180
|
+
* @summary Sign hash
|
|
181
181
|
*/
|
|
182
182
|
export const signEvmHash = (
|
|
183
183
|
address: string,
|
|
@@ -198,7 +198,7 @@ export const signEvmHash = (
|
|
|
198
198
|
* Signs an [EIP-191](https://eips.ethereum.org/EIPS/eip-191) message with the given EVM account.
|
|
199
199
|
|
|
200
200
|
Per the specification, the message in the request body is prepended with `0x19 <0x45 (E)> <thereum Signed Message:\n" + len(message)>` before being signed.
|
|
201
|
-
* @summary Sign
|
|
201
|
+
* @summary Sign EIP-191 message
|
|
202
202
|
*/
|
|
203
203
|
export const signEvmMessage = (
|
|
204
204
|
address: string,
|
|
@@ -263,7 +263,7 @@ export const createEvmEip7702Delegation = (
|
|
|
263
263
|
};
|
|
264
264
|
/**
|
|
265
265
|
* Returns the EIP-7702 delegation operation. Use the delegationOperationId returned by the Create EIP-7702 delegation endpoint to poll for operation completion.
|
|
266
|
-
* @summary Get EIP-7702 delegation operation
|
|
266
|
+
* @summary Get EIP-7702 delegation operation by ID
|
|
267
267
|
*/
|
|
268
268
|
export const getEvmEip7702DelegationOperationById = (
|
|
269
269
|
delegationOperationId: string,
|
|
@@ -276,7 +276,7 @@ export const getEvmEip7702DelegationOperationById = (
|
|
|
276
276
|
};
|
|
277
277
|
/**
|
|
278
278
|
* 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.
|
|
279
|
-
* @summary Import
|
|
279
|
+
* @summary Import EVM account
|
|
280
280
|
*/
|
|
281
281
|
export const importEvmAccount = (
|
|
282
282
|
importEvmAccountBody: ImportEvmAccountBody,
|
|
@@ -294,7 +294,7 @@ export const importEvmAccount = (
|
|
|
294
294
|
};
|
|
295
295
|
/**
|
|
296
296
|
* Export an existing EVM account's private key. It is important to store the private key in a secure place after it's exported.
|
|
297
|
-
* @summary Export
|
|
297
|
+
* @summary Export EVM account
|
|
298
298
|
*/
|
|
299
299
|
export const exportEvmAccount = (
|
|
300
300
|
address: string,
|
|
@@ -313,7 +313,7 @@ export const exportEvmAccount = (
|
|
|
313
313
|
};
|
|
314
314
|
/**
|
|
315
315
|
* 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.
|
|
316
|
-
* @summary Export
|
|
316
|
+
* @summary Export EVM account by name
|
|
317
317
|
*/
|
|
318
318
|
export const exportEvmAccountByName = (
|
|
319
319
|
name: string,
|
package/{openapi-client → src/openapi-client}/generated/evm-smart-accounts/evm-smart-accounts.ts
RENAMED
|
@@ -41,7 +41,7 @@ export const listEvmSmartAccounts = (
|
|
|
41
41
|
};
|
|
42
42
|
/**
|
|
43
43
|
* Creates a new Smart Account.
|
|
44
|
-
* @summary Create
|
|
44
|
+
* @summary Create Smart Account
|
|
45
45
|
*/
|
|
46
46
|
export const createEvmSmartAccount = (
|
|
47
47
|
createEvmSmartAccountBody: CreateEvmSmartAccountBody,
|
|
@@ -59,7 +59,7 @@ export const createEvmSmartAccount = (
|
|
|
59
59
|
};
|
|
60
60
|
/**
|
|
61
61
|
* Gets a Smart Account by its name.
|
|
62
|
-
* @summary Get
|
|
62
|
+
* @summary Get Smart Account by name
|
|
63
63
|
*/
|
|
64
64
|
export const getEvmSmartAccountByName = (
|
|
65
65
|
name: string,
|
|
@@ -72,7 +72,7 @@ export const getEvmSmartAccountByName = (
|
|
|
72
72
|
};
|
|
73
73
|
/**
|
|
74
74
|
* Gets a Smart Account by its address.
|
|
75
|
-
* @summary Get
|
|
75
|
+
* @summary Get Smart Account by address
|
|
76
76
|
*/
|
|
77
77
|
export const getEvmSmartAccount = (
|
|
78
78
|
address: string,
|
|
@@ -85,7 +85,7 @@ export const getEvmSmartAccount = (
|
|
|
85
85
|
};
|
|
86
86
|
/**
|
|
87
87
|
* Updates an existing EVM smart account. Use this to update the smart account's name.
|
|
88
|
-
* @summary Update
|
|
88
|
+
* @summary Update EVM Smart Account
|
|
89
89
|
*/
|
|
90
90
|
export const updateEvmSmartAccount = (
|
|
91
91
|
address: string,
|
|
@@ -104,7 +104,7 @@ export const updateEvmSmartAccount = (
|
|
|
104
104
|
};
|
|
105
105
|
/**
|
|
106
106
|
* Prepares a new user operation on a Smart Account for a specific network.
|
|
107
|
-
* @summary Prepare
|
|
107
|
+
* @summary Prepare user operation
|
|
108
108
|
*/
|
|
109
109
|
export const prepareUserOperation = (
|
|
110
110
|
address: string,
|
|
@@ -123,7 +123,7 @@ export const prepareUserOperation = (
|
|
|
123
123
|
};
|
|
124
124
|
/**
|
|
125
125
|
* 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.
|
|
126
|
-
* @summary Prepare and send
|
|
126
|
+
* @summary Prepare and send user operation
|
|
127
127
|
*/
|
|
128
128
|
export const prepareAndSendUserOperation = (
|
|
129
129
|
address: string,
|
|
@@ -142,7 +142,7 @@ export const prepareAndSendUserOperation = (
|
|
|
142
142
|
};
|
|
143
143
|
/**
|
|
144
144
|
* Gets a user operation by its hash.
|
|
145
|
-
* @summary Get
|
|
145
|
+
* @summary Get user operation
|
|
146
146
|
*/
|
|
147
147
|
export const getUserOperation = (
|
|
148
148
|
address: string,
|
|
@@ -159,7 +159,7 @@ export const getUserOperation = (
|
|
|
159
159
|
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).
|
|
160
160
|
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)
|
|
161
161
|
If using the CDP Paymaster, the user operation must be signed and sent within 2 minutes of being prepared.
|
|
162
|
-
* @summary Send
|
|
162
|
+
* @summary Send user operation
|
|
163
163
|
*/
|
|
164
164
|
export const sendUserOperation = (
|
|
165
165
|
address: string,
|
|
@@ -179,7 +179,7 @@ export const sendUserOperation = (
|
|
|
179
179
|
};
|
|
180
180
|
/**
|
|
181
181
|
* Creates a spend permission for the given smart account address.
|
|
182
|
-
* @summary Create
|
|
182
|
+
* @summary Create spend permission
|
|
183
183
|
*/
|
|
184
184
|
export const createSpendPermission = (
|
|
185
185
|
address: string,
|
|
@@ -212,7 +212,7 @@ export const listSpendPermissions = (
|
|
|
212
212
|
};
|
|
213
213
|
/**
|
|
214
214
|
* Revokes an existing spend permission.
|
|
215
|
-
* @summary Revoke
|
|
215
|
+
* @summary Revoke spend permission
|
|
216
216
|
*/
|
|
217
217
|
export const revokeSpendPermission = (
|
|
218
218
|
address: string,
|
|
@@ -18,7 +18,7 @@ type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* Get a price estimate for a swap between two tokens on an EVM network.
|
|
21
|
-
* @summary Get
|
|
21
|
+
* @summary Get swap price estimate
|
|
22
22
|
*/
|
|
23
23
|
export const getEvmSwapPrice = (
|
|
24
24
|
params: GetEvmSwapPriceParams,
|
|
@@ -31,7 +31,7 @@ export const getEvmSwapPrice = (
|
|
|
31
31
|
};
|
|
32
32
|
/**
|
|
33
33
|
* 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.
|
|
34
|
-
* @summary Create
|
|
34
|
+
* @summary Create swap quote
|
|
35
35
|
*/
|
|
36
36
|
export const createEvmSwapQuote = (
|
|
37
37
|
createEvmSwapQuoteBody: CreateEvmSwapQuoteBody,
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v7.21.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Coinbase Developer Platform APIs
|
|
5
|
+
* The Coinbase Developer Platform APIs - leading the world's transition onchain.
|
|
6
|
+
* OpenAPI spec version: 2.0.0
|
|
7
|
+
*/
|
|
8
|
+
import type {
|
|
9
|
+
ListPaymentMethods200,
|
|
10
|
+
ListPaymentMethodsParams,
|
|
11
|
+
PaymentMethodId,
|
|
12
|
+
PaymentMethodsPaymentMethod,
|
|
13
|
+
} from "../coinbaseDeveloperPlatformAPIs.schemas.js";
|
|
14
|
+
|
|
15
|
+
import { cdpApiClient } from "../../cdpApiClient.js";
|
|
16
|
+
|
|
17
|
+
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* List payment methods linked to your entity. Payment methods represent external financial instruments that can be used as a target for transfers. The list will not include disabled or deleted payment methods.
|
|
21
|
+
|
|
22
|
+
**Currently Supported Types:**
|
|
23
|
+
- `fedwire`: Domestic USD wire transfers
|
|
24
|
+
- `swift`: International wire transfers
|
|
25
|
+
- `sepa`: SEPA EUR transfers
|
|
26
|
+
|
|
27
|
+
**Note:** Payment methods are created and verified through your linked CDP entity. Currently, fetching payment methods is only supported for Prime investment vehicles linked to CDP.
|
|
28
|
+
* @summary List payment methods
|
|
29
|
+
*/
|
|
30
|
+
export const listPaymentMethods = (
|
|
31
|
+
params?: ListPaymentMethodsParams,
|
|
32
|
+
options?: SecondParameter<typeof cdpApiClient<ListPaymentMethods200>>,
|
|
33
|
+
) => {
|
|
34
|
+
return cdpApiClient<ListPaymentMethods200>(
|
|
35
|
+
{ url: `/v2/payment-methods`, method: "GET", params },
|
|
36
|
+
options,
|
|
37
|
+
);
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Get details of a specific payment method by its ID. Returns 404 if the payment method is not found or not owned by the requesting entity.
|
|
41
|
+
* @summary Get payment method
|
|
42
|
+
*/
|
|
43
|
+
export const getPaymentMethod = (
|
|
44
|
+
paymentMethodId: PaymentMethodId,
|
|
45
|
+
options?: SecondParameter<typeof cdpApiClient<PaymentMethodsPaymentMethod>>,
|
|
46
|
+
) => {
|
|
47
|
+
return cdpApiClient<PaymentMethodsPaymentMethod>(
|
|
48
|
+
{ url: `/v2/payment-methods/${paymentMethodId}`, method: "GET" },
|
|
49
|
+
options,
|
|
50
|
+
);
|
|
51
|
+
};
|
|
52
|
+
export type ListPaymentMethodsResult = NonNullable<Awaited<ReturnType<typeof listPaymentMethods>>>;
|
|
53
|
+
export type GetPaymentMethodResult = NonNullable<Awaited<ReturnType<typeof getPaymentMethod>>>;
|
|
@@ -33,7 +33,7 @@ export const listPolicies = (
|
|
|
33
33
|
};
|
|
34
34
|
/**
|
|
35
35
|
* Create a policy that can be used to govern the behavior of accounts.
|
|
36
|
-
* @summary Create
|
|
36
|
+
* @summary Create policy
|
|
37
37
|
*/
|
|
38
38
|
export const createPolicy = (
|
|
39
39
|
createPolicyBody: CreatePolicyBody,
|
|
@@ -51,7 +51,7 @@ export const createPolicy = (
|
|
|
51
51
|
};
|
|
52
52
|
/**
|
|
53
53
|
* Get a policy by its ID.
|
|
54
|
-
* @summary Get
|
|
54
|
+
* @summary Get policy by ID
|
|
55
55
|
*/
|
|
56
56
|
export const getPolicyById = (
|
|
57
57
|
policyId: string,
|
|
@@ -64,7 +64,7 @@ export const getPolicyById = (
|
|
|
64
64
|
};
|
|
65
65
|
/**
|
|
66
66
|
* Delete a policy by its ID. This will have the effect of removing the policy from all accounts that are currently using it.
|
|
67
|
-
* @summary Delete
|
|
67
|
+
* @summary Delete policy
|
|
68
68
|
*/
|
|
69
69
|
export const deletePolicy = (
|
|
70
70
|
policyId: string,
|
|
@@ -77,7 +77,7 @@ export const deletePolicy = (
|
|
|
77
77
|
};
|
|
78
78
|
/**
|
|
79
79
|
* Updates a policy by its ID. This will have the effect of applying the updated policy to all accounts that are currently using it.
|
|
80
|
-
* @summary Update
|
|
80
|
+
* @summary Update policy
|
|
81
81
|
*/
|
|
82
82
|
export const updatePolicy = (
|
|
83
83
|
policyId: string,
|
|
@@ -33,7 +33,7 @@ type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
|
33
33
|
The response is paginated, and by default, returns 20 accounts per page.
|
|
34
34
|
|
|
35
35
|
If a name is provided, the response will contain only the account with that name.
|
|
36
|
-
* @summary List Solana accounts
|
|
36
|
+
* @summary List Solana accounts
|
|
37
37
|
*/
|
|
38
38
|
export const listSolanaAccounts = (
|
|
39
39
|
params?: ListSolanaAccountsParams,
|
|
@@ -46,7 +46,7 @@ export const listSolanaAccounts = (
|
|
|
46
46
|
};
|
|
47
47
|
/**
|
|
48
48
|
* Creates a new Solana account.
|
|
49
|
-
* @summary Create
|
|
49
|
+
* @summary Create Solana account
|
|
50
50
|
*/
|
|
51
51
|
export const createSolanaAccount = (
|
|
52
52
|
createSolanaAccountBody?: CreateSolanaAccountBody,
|
|
@@ -64,7 +64,7 @@ export const createSolanaAccount = (
|
|
|
64
64
|
};
|
|
65
65
|
/**
|
|
66
66
|
* Gets a Solana account by its address.
|
|
67
|
-
* @summary Get
|
|
67
|
+
* @summary Get Solana account by address
|
|
68
68
|
*/
|
|
69
69
|
export const getSolanaAccount = (
|
|
70
70
|
address: string,
|
|
@@ -77,7 +77,7 @@ export const getSolanaAccount = (
|
|
|
77
77
|
};
|
|
78
78
|
/**
|
|
79
79
|
* Updates an existing Solana account. Use this to update the account's name or account-level policy.
|
|
80
|
-
* @summary Update
|
|
80
|
+
* @summary Update Solana account
|
|
81
81
|
*/
|
|
82
82
|
export const updateSolanaAccount = (
|
|
83
83
|
address: string,
|
|
@@ -96,7 +96,7 @@ export const updateSolanaAccount = (
|
|
|
96
96
|
};
|
|
97
97
|
/**
|
|
98
98
|
* Gets a Solana account by its name.
|
|
99
|
-
* @summary Get
|
|
99
|
+
* @summary Get Solana account by name
|
|
100
100
|
*/
|
|
101
101
|
export const getSolanaAccountByName = (
|
|
102
102
|
name: string,
|
|
@@ -109,7 +109,7 @@ export const getSolanaAccountByName = (
|
|
|
109
109
|
};
|
|
110
110
|
/**
|
|
111
111
|
* 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.
|
|
112
|
-
* @summary Import
|
|
112
|
+
* @summary Import Solana account
|
|
113
113
|
*/
|
|
114
114
|
export const importSolanaAccount = (
|
|
115
115
|
importSolanaAccountBody: ImportSolanaAccountBody,
|
|
@@ -127,7 +127,7 @@ export const importSolanaAccount = (
|
|
|
127
127
|
};
|
|
128
128
|
/**
|
|
129
129
|
* Export an existing Solana account's private key. It is important to store the private key in a secure place after it's exported.
|
|
130
|
-
* @summary Export
|
|
130
|
+
* @summary Export Solana account
|
|
131
131
|
*/
|
|
132
132
|
export const exportSolanaAccount = (
|
|
133
133
|
address: string,
|
|
@@ -146,7 +146,7 @@ export const exportSolanaAccount = (
|
|
|
146
146
|
};
|
|
147
147
|
/**
|
|
148
148
|
* 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.
|
|
149
|
-
* @summary Export
|
|
149
|
+
* @summary Export Solana account by name
|
|
150
150
|
*/
|
|
151
151
|
export const exportSolanaAccountByName = (
|
|
152
152
|
name: string,
|
|
@@ -174,7 +174,7 @@ The following transaction types are supported:
|
|
|
174
174
|
* [Versioned transactions](https://solana-labs.github.io/solana-web3.js/classes/VersionedTransaction.html)
|
|
175
175
|
|
|
176
176
|
The developer is responsible for ensuring that the unsigned transaction is valid, as the API will not validate the transaction.
|
|
177
|
-
* @summary Sign
|
|
177
|
+
* @summary Sign transaction
|
|
178
178
|
*/
|
|
179
179
|
export const signSolanaTransaction = (
|
|
180
180
|
address: string,
|
|
@@ -195,7 +195,7 @@ export const signSolanaTransaction = (
|
|
|
195
195
|
* Signs an arbitrary message with the given Solana account.
|
|
196
196
|
|
|
197
197
|
**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.
|
|
198
|
-
* @summary Sign
|
|
198
|
+
* @summary Sign message
|
|
199
199
|
*/
|
|
200
200
|
export const signSolanaMessage = (
|
|
201
201
|
address: string,
|
|
@@ -234,7 +234,7 @@ The following Solana networks are supported:
|
|
|
234
234
|
* `solana-devnet` - Solana Devnet
|
|
235
235
|
|
|
236
236
|
The developer is responsible for ensuring that the unsigned transaction is valid, as the API will not validate the transaction.
|
|
237
|
-
* @summary Send
|
|
237
|
+
* @summary Send Solana transaction
|
|
238
238
|
*/
|
|
239
239
|
export const sendSolanaTransaction = (
|
|
240
240
|
sendSolanaTransactionBody: SendSolanaTransactionBody,
|
|
@@ -95,7 +95,7 @@ export const getSQLGrammar = (options?: SecondParameter<typeof cdpApiClient<stri
|
|
|
95
95
|
|
|
96
96
|
This includes table names, column definitions, data types, and indexed fields.
|
|
97
97
|
|
|
98
|
-
* @summary Get
|
|
98
|
+
* @summary Get schema details
|
|
99
99
|
*/
|
|
100
100
|
export const getSQLSchema = (
|
|
101
101
|
params?: GetSQLSchemaParams,
|