@coinbase/cdp-sdk 1.50.0 → 1.51.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +0 -11
- 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.map +1 -1
- package/_cjs/client/end-user/endUser.types.js.map +1 -1
- 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 +0 -11
- 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.map +1 -1
- package/_esm/client/end-user/endUser.types.js.map +1 -1
- 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.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/{actions → src/actions}/evm/transfer/transferWithViem.ts +0 -12
- package/{auth → src/auth}/README.md +3 -3
- 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 -637
- 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/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}/end-user/endUser.ts +0 -0
- /package/{client → src/client}/end-user/endUser.types.ts +0 -0
- /package/{client → src/client}/end-user/toEndUserAccount.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
|
@@ -1,132 +1,286 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.sendSolanaAssetWithEndUserAccount = exports.sendSolanaTransactionWithEndUserAccount = exports.signSolanaTransactionWithEndUserAccount = exports.signSolanaMessageWithEndUserAccount = exports.sendUserOperationWithEndUserAccount = exports.createEvmEip7702DelegationWithEndUserAccount = exports.revokeDelegationForEndUserAccount = exports.getDelegationForEndUserAccount = exports.createDelegationForEndUserAccount = exports.revokeDelegationForEndUser = exports.getDelegationForEndUser = exports.signEvmTypedDataWithEndUserAccount = exports.signEvmMessageWithEndUserAccount = exports.sendEvmAssetWithEndUserAccount = exports.sendEvmTransactionWithEndUserAccount = exports.signEvmTransactionWithEndUserAccount = void 0;
|
|
4
4
|
const cdpApiClient_js_1 = require("../../cdpApiClient.js");
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
* Signs a transaction with the given end user EVM account.
|
|
7
|
+
The transaction should be serialized as a hex string using [RLP](https://ethereum.org/en/developers/docs/data-structures-and-encoding/rlp/).
|
|
8
|
+
|
|
9
|
+
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.
|
|
10
|
+
* @summary Sign transaction via end user EVM account
|
|
9
11
|
*/
|
|
10
|
-
const
|
|
12
|
+
const signEvmTransactionWithEndUserAccount = (userId, signEvmTransactionWithEndUserAccountBody, params, options) => {
|
|
11
13
|
return (0, cdpApiClient_js_1.cdpApiClient)({
|
|
12
|
-
url: `/v2/end-users`,
|
|
14
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/evm/sign/transaction`,
|
|
13
15
|
method: "POST",
|
|
14
16
|
headers: { "Content-Type": "application/json" },
|
|
15
|
-
data:
|
|
17
|
+
data: signEvmTransactionWithEndUserAccountBody,
|
|
18
|
+
params,
|
|
16
19
|
}, options);
|
|
17
20
|
};
|
|
18
|
-
exports.
|
|
21
|
+
exports.signEvmTransactionWithEndUserAccount = signEvmTransactionWithEndUserAccount;
|
|
19
22
|
/**
|
|
20
|
-
*
|
|
21
|
-
|
|
22
|
-
|
|
23
|
+
* Signs a transaction with the given end user 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/).
|
|
24
|
+
|
|
25
|
+
The transaction must be an [EIP-1559 dynamic fee transaction](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1559.md).
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
**Transaction fields and API behavior**
|
|
29
|
+
|
|
30
|
+
- `to` *(Required)*: The address of the contract or account to send the transaction to.
|
|
31
|
+
- `chainId` *(Ignored)*: The value of the `chainId` field in the transaction is ignored.
|
|
32
|
+
The transaction will be sent to the network indicated by the `network` field in the request body.
|
|
33
|
+
|
|
34
|
+
- `nonce` *(Optional)*: The nonce to use for the transaction. If not provided, the API will assign
|
|
35
|
+
a nonce to the transaction based on the current state of the account.
|
|
36
|
+
|
|
37
|
+
- `maxPriorityFeePerGas` *(Optional)*: The maximum priority fee per gas to use for the transaction.
|
|
38
|
+
If not provided, the API will estimate a value based on current network conditions.
|
|
39
|
+
|
|
40
|
+
- `maxFeePerGas` *(Optional)*: The maximum fee per gas to use for the transaction.
|
|
41
|
+
If not provided, the API will estimate a value based on current network conditions.
|
|
42
|
+
|
|
43
|
+
- `gasLimit` *(Optional)*: The gas limit to use for the transaction. If not provided, the API will estimate a value
|
|
44
|
+
based on the `to` and `data` fields of the transaction.
|
|
45
|
+
|
|
46
|
+
- `value` *(Optional)*: The amount of ETH, in wei, to send with the transaction.
|
|
47
|
+
- `data` *(Optional)*: The data to send with the transaction; only used for contract calls.
|
|
48
|
+
- `accessList` *(Optional)*: The access list to use for the transaction.
|
|
49
|
+
* @summary Send transaction via end user EVM account
|
|
23
50
|
*/
|
|
24
|
-
const
|
|
25
|
-
return (0, cdpApiClient_js_1.cdpApiClient)({
|
|
51
|
+
const sendEvmTransactionWithEndUserAccount = (userId, sendEvmTransactionWithEndUserAccountBody, params, options) => {
|
|
52
|
+
return (0, cdpApiClient_js_1.cdpApiClient)({
|
|
53
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/evm/send/transaction`,
|
|
54
|
+
method: "POST",
|
|
55
|
+
headers: { "Content-Type": "application/json" },
|
|
56
|
+
data: sendEvmTransactionWithEndUserAccountBody,
|
|
57
|
+
params,
|
|
58
|
+
}, options);
|
|
26
59
|
};
|
|
27
|
-
exports.
|
|
60
|
+
exports.sendEvmTransactionWithEndUserAccount = sendEvmTransactionWithEndUserAccount;
|
|
28
61
|
/**
|
|
29
|
-
*
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
* @summary Validate end user access token
|
|
62
|
+
* Sends USDC from an end user's EVM account (EOA or Smart Account) to a recipient address on a supported EVM network. This endpoint simplifies USDC transfers by automatically handling contract resolution, decimal conversion, gas estimation, and transaction encoding.
|
|
63
|
+
The `amount` field accepts human-readable amounts as decimal strings (e.g., "1.5", "25.50").
|
|
64
|
+
* @summary Send USDC on EVM
|
|
33
65
|
*/
|
|
34
|
-
const
|
|
66
|
+
const sendEvmAssetWithEndUserAccount = (userId, address, asset, sendEvmAssetWithEndUserAccountBody, params, options) => {
|
|
35
67
|
return (0, cdpApiClient_js_1.cdpApiClient)({
|
|
36
|
-
url: `/v2/end-users/
|
|
68
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/evm/${address}/send/${asset}`,
|
|
37
69
|
method: "POST",
|
|
38
70
|
headers: { "Content-Type": "application/json" },
|
|
39
|
-
data:
|
|
71
|
+
data: sendEvmAssetWithEndUserAccountBody,
|
|
72
|
+
params,
|
|
40
73
|
}, options);
|
|
41
74
|
};
|
|
42
|
-
exports.
|
|
75
|
+
exports.sendEvmAssetWithEndUserAccount = sendEvmAssetWithEndUserAccount;
|
|
43
76
|
/**
|
|
44
|
-
*
|
|
77
|
+
* Signs an [EIP-191](https://eips.ethereum.org/EIPS/eip-191) message with the given end user EVM account.
|
|
45
78
|
|
|
46
|
-
|
|
47
|
-
* @summary
|
|
79
|
+
Per the specification, the message in the request body is prepended with `0x19 <0x45 (E)> <thereum Signed Message:\n" + len(message)>` before being signed.
|
|
80
|
+
* @summary Sign EIP-191 message via end user EVM account
|
|
81
|
+
*/
|
|
82
|
+
const signEvmMessageWithEndUserAccount = (userId, signEvmMessageWithEndUserAccountBody, params, options) => {
|
|
83
|
+
return (0, cdpApiClient_js_1.cdpApiClient)({
|
|
84
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/evm/sign/message`,
|
|
85
|
+
method: "POST",
|
|
86
|
+
headers: { "Content-Type": "application/json" },
|
|
87
|
+
data: signEvmMessageWithEndUserAccountBody,
|
|
88
|
+
params,
|
|
89
|
+
}, options);
|
|
90
|
+
};
|
|
91
|
+
exports.signEvmMessageWithEndUserAccount = signEvmMessageWithEndUserAccount;
|
|
92
|
+
/**
|
|
93
|
+
* Signs [EIP-712](https://eips.ethereum.org/EIPS/eip-712) typed data with the given end user EVM account.
|
|
94
|
+
* @summary Sign EIP-712 typed data via end user EVM account
|
|
48
95
|
*/
|
|
49
|
-
const
|
|
50
|
-
return (0, cdpApiClient_js_1.cdpApiClient)({
|
|
96
|
+
const signEvmTypedDataWithEndUserAccount = (userId, signEvmTypedDataWithEndUserAccountBody, params, options) => {
|
|
97
|
+
return (0, cdpApiClient_js_1.cdpApiClient)({
|
|
98
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/evm/sign/typed-data`,
|
|
99
|
+
method: "POST",
|
|
100
|
+
headers: { "Content-Type": "application/json" },
|
|
101
|
+
data: signEvmTypedDataWithEndUserAccountBody,
|
|
102
|
+
params,
|
|
103
|
+
}, options);
|
|
51
104
|
};
|
|
52
|
-
exports.
|
|
105
|
+
exports.signEvmTypedDataWithEndUserAccount = signEvmTypedDataWithEndUserAccount;
|
|
53
106
|
/**
|
|
54
|
-
*
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
107
|
+
* Returns the active delegation for the specified end user, if one exists. This operation can be performed by the end user themselves or by a developer using their API key.
|
|
108
|
+
* @summary Get delegation for end user
|
|
109
|
+
*/
|
|
110
|
+
const getDelegationForEndUser = (userId, params, options) => {
|
|
111
|
+
return (0, cdpApiClient_js_1.cdpApiClient)({ url: `/v2/embedded-wallet-api/end-users/${userId}/delegation`, method: "GET", params }, options);
|
|
112
|
+
};
|
|
113
|
+
exports.getDelegationForEndUser = getDelegationForEndUser;
|
|
114
|
+
/**
|
|
115
|
+
* Revokes all active delegations for the specified end user. This operation can be performed by the end user themselves or by a developer using their API key.
|
|
116
|
+
* @summary Revoke delegation for end user
|
|
117
|
+
*/
|
|
118
|
+
const revokeDelegationForEndUser = (userId, revokeDelegationForEndUserBody, params, options) => {
|
|
119
|
+
return (0, cdpApiClient_js_1.cdpApiClient)({
|
|
120
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/delegation`,
|
|
121
|
+
method: "DELETE",
|
|
122
|
+
headers: { "Content-Type": "application/json" },
|
|
123
|
+
data: revokeDelegationForEndUserBody,
|
|
124
|
+
params,
|
|
125
|
+
}, options);
|
|
126
|
+
};
|
|
127
|
+
exports.revokeDelegationForEndUser = revokeDelegationForEndUser;
|
|
128
|
+
/**
|
|
129
|
+
* 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.
|
|
130
|
+
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.
|
|
131
|
+
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.
|
|
132
|
+
* @summary Create account-scoped delegation for end user
|
|
133
|
+
*/
|
|
134
|
+
const createDelegationForEndUserAccount = (userId, address, createDelegationForEndUserAccountBody, params, options) => {
|
|
135
|
+
return (0, cdpApiClient_js_1.cdpApiClient)({
|
|
136
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/address/${address}/delegation`,
|
|
137
|
+
method: "POST",
|
|
138
|
+
headers: { "Content-Type": "application/json" },
|
|
139
|
+
data: createDelegationForEndUserAccountBody,
|
|
140
|
+
params,
|
|
141
|
+
}, options);
|
|
142
|
+
};
|
|
143
|
+
exports.createDelegationForEndUserAccount = createDelegationForEndUserAccount;
|
|
144
|
+
/**
|
|
145
|
+
* Returns the active account-scoped delegation for the specified end user account, if one exists. Useful for showing delegation status in a UI.
|
|
146
|
+
When the address corresponds to an EVM Smart Account, this returns the delegation for the Smart Account's owner EOA.
|
|
147
|
+
* @summary Get account-scoped delegation for end user
|
|
148
|
+
*/
|
|
149
|
+
const getDelegationForEndUserAccount = (userId, address, params, options) => {
|
|
150
|
+
return (0, cdpApiClient_js_1.cdpApiClient)({
|
|
151
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/address/${address}/delegation`,
|
|
152
|
+
method: "GET",
|
|
153
|
+
params,
|
|
154
|
+
}, options);
|
|
155
|
+
};
|
|
156
|
+
exports.getDelegationForEndUserAccount = getDelegationForEndUserAccount;
|
|
157
|
+
/**
|
|
158
|
+
* 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.
|
|
159
|
+
When the address corresponds to an EVM Smart Account, this revokes the delegation for the Smart Account's owner EOA.
|
|
160
|
+
* @summary Revoke account-scoped delegation for end user
|
|
161
|
+
*/
|
|
162
|
+
const revokeDelegationForEndUserAccount = (userId, address, revokeDelegationForEndUserAccountBody, params, options) => {
|
|
163
|
+
return (0, cdpApiClient_js_1.cdpApiClient)({
|
|
164
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/address/${address}/delegation`,
|
|
165
|
+
method: "DELETE",
|
|
166
|
+
headers: { "Content-Type": "application/json" },
|
|
167
|
+
data: revokeDelegationForEndUserAccountBody,
|
|
168
|
+
params,
|
|
169
|
+
}, options);
|
|
170
|
+
};
|
|
171
|
+
exports.revokeDelegationForEndUserAccount = revokeDelegationForEndUserAccount;
|
|
172
|
+
/**
|
|
173
|
+
* Creates an EIP-7702 delegation for an end user's EVM EOA account, upgrading it with smart account capabilities.
|
|
65
174
|
|
|
66
|
-
|
|
175
|
+
This endpoint:
|
|
176
|
+
- Retrieves delegation artifacts from onchain
|
|
177
|
+
- Signs the EIP-7702 authorization for delegation
|
|
178
|
+
- Assembles and submits a Type 4 transaction
|
|
179
|
+
- Creates an associated smart account object
|
|
67
180
|
|
|
68
|
-
|
|
69
|
-
* @summary
|
|
181
|
+
The delegation allows the EVM EOA to be used as a smart account, which enables batched transactions and gas sponsorship via paymaster.
|
|
182
|
+
* @summary Create EIP-7702 delegation for end user EVM account
|
|
70
183
|
*/
|
|
71
|
-
const
|
|
72
|
-
return (0, cdpApiClient_js_1.cdpApiClient)({
|
|
184
|
+
const createEvmEip7702DelegationWithEndUserAccount = (userId, createEvmEip7702DelegationWithEndUserAccountBody, params, options) => {
|
|
185
|
+
return (0, cdpApiClient_js_1.cdpApiClient)({
|
|
186
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/evm/eip7702/delegation`,
|
|
187
|
+
method: "POST",
|
|
188
|
+
headers: { "Content-Type": "application/json" },
|
|
189
|
+
data: createEvmEip7702DelegationWithEndUserAccountBody,
|
|
190
|
+
params,
|
|
191
|
+
}, options);
|
|
73
192
|
};
|
|
74
|
-
exports.
|
|
193
|
+
exports.createEvmEip7702DelegationWithEndUserAccount = createEvmEip7702DelegationWithEndUserAccount;
|
|
75
194
|
/**
|
|
76
|
-
*
|
|
77
|
-
|
|
78
|
-
* @summary Add an EVM account to an end user
|
|
195
|
+
* Prepares, signs, and sends a user operation for an end user's Smart Account.
|
|
196
|
+
* @summary Send user operation for end user Smart Account
|
|
79
197
|
*/
|
|
80
|
-
const
|
|
198
|
+
const sendUserOperationWithEndUserAccount = (userId, address, sendUserOperationWithEndUserAccountBody, params, options) => {
|
|
81
199
|
return (0, cdpApiClient_js_1.cdpApiClient)({
|
|
82
|
-
url: `/v2/end-users/${userId}/evm`,
|
|
200
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/evm/smart-accounts/${address}/send`,
|
|
83
201
|
method: "POST",
|
|
84
202
|
headers: { "Content-Type": "application/json" },
|
|
85
|
-
data:
|
|
203
|
+
data: sendUserOperationWithEndUserAccountBody,
|
|
204
|
+
params,
|
|
86
205
|
}, options);
|
|
87
206
|
};
|
|
88
|
-
exports.
|
|
207
|
+
exports.sendUserOperationWithEndUserAccount = sendUserOperationWithEndUserAccount;
|
|
89
208
|
/**
|
|
90
|
-
*
|
|
91
|
-
|
|
92
|
-
* @summary
|
|
209
|
+
* Signs an arbitrary Base64 encoded message with the given Solana account.
|
|
210
|
+
**WARNING:** Never sign a message that you didn't generate as it may put your funds at risk.
|
|
211
|
+
* @summary Sign Base64-encoded message
|
|
93
212
|
*/
|
|
94
|
-
const
|
|
213
|
+
const signSolanaMessageWithEndUserAccount = (userId, signSolanaMessageWithEndUserAccountBody, params, options) => {
|
|
95
214
|
return (0, cdpApiClient_js_1.cdpApiClient)({
|
|
96
|
-
url: `/v2/end-users/${userId}/
|
|
215
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/solana/sign/message`,
|
|
97
216
|
method: "POST",
|
|
98
217
|
headers: { "Content-Type": "application/json" },
|
|
99
|
-
data:
|
|
218
|
+
data: signSolanaMessageWithEndUserAccountBody,
|
|
219
|
+
params,
|
|
100
220
|
}, options);
|
|
101
221
|
};
|
|
102
|
-
exports.
|
|
222
|
+
exports.signSolanaMessageWithEndUserAccount = signSolanaMessageWithEndUserAccount;
|
|
103
223
|
/**
|
|
104
|
-
*
|
|
105
|
-
|
|
106
|
-
|
|
224
|
+
* Signs a transaction with the given end user Solana account.
|
|
225
|
+
The unsigned transaction should be serialized into a byte array and then encoded as base64.
|
|
226
|
+
**Transaction types**
|
|
227
|
+
The following transaction types are supported:
|
|
228
|
+
* [Legacy transactions](https://solana-labs.github.io/solana-web3.js/classes/Transaction.html)
|
|
229
|
+
* [Versioned transactions](https://solana-labs.github.io/solana-web3.js/classes/VersionedTransaction.html)
|
|
230
|
+
The developer is responsible for ensuring that the unsigned transaction is valid, as the API will not validate the transaction.
|
|
231
|
+
* @summary Sign transaction via end user Solana account
|
|
107
232
|
*/
|
|
108
|
-
const
|
|
233
|
+
const signSolanaTransactionWithEndUserAccount = (userId, signSolanaTransactionWithEndUserAccountBody, params, options) => {
|
|
109
234
|
return (0, cdpApiClient_js_1.cdpApiClient)({
|
|
110
|
-
url: `/v2/end-users/${userId}/solana`,
|
|
235
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/solana/sign/transaction`,
|
|
111
236
|
method: "POST",
|
|
112
237
|
headers: { "Content-Type": "application/json" },
|
|
113
|
-
data:
|
|
238
|
+
data: signSolanaTransactionWithEndUserAccountBody,
|
|
239
|
+
params,
|
|
114
240
|
}, options);
|
|
115
241
|
};
|
|
116
|
-
exports.
|
|
242
|
+
exports.signSolanaTransactionWithEndUserAccount = signSolanaTransactionWithEndUserAccount;
|
|
117
243
|
/**
|
|
118
|
-
*
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
244
|
+
* Signs a transaction with the given end user Solana account and sends it to the indicated supported network.
|
|
245
|
+
The API handles recent blockhash management and fee estimation, leaving the developer to provide only the minimal set of fields necessary to send the transaction.
|
|
246
|
+
The unsigned transaction should be serialized into a byte array and then encoded as base64.
|
|
247
|
+
**Transaction types**
|
|
248
|
+
The following transaction types are supported:
|
|
249
|
+
* [Legacy transactions](https://solana.com/developers/guides/advanced/versions#current-transaction-versions)
|
|
250
|
+
* [Versioned transactions](https://solana.com/developers/guides/advanced/versions)
|
|
251
|
+
**Instruction Batching**
|
|
252
|
+
To batch multiple operations, include multiple instructions within a single transaction. All instructions within a transaction are executed atomically - if any instruction fails, the entire transaction fails and is rolled back.
|
|
253
|
+
**Network Support**
|
|
254
|
+
The following Solana networks are supported:
|
|
255
|
+
* `solana` - Solana Mainnet
|
|
256
|
+
* `solana-devnet` - Solana Devnet
|
|
257
|
+
The developer is responsible for ensuring that the unsigned transaction is valid, as the API will not validate the transaction.
|
|
258
|
+
* @summary Send transaction via end user Solana account
|
|
259
|
+
*/
|
|
260
|
+
const sendSolanaTransactionWithEndUserAccount = (userId, sendSolanaTransactionWithEndUserAccountBody, params, options) => {
|
|
261
|
+
return (0, cdpApiClient_js_1.cdpApiClient)({
|
|
262
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/solana/send/transaction`,
|
|
263
|
+
method: "POST",
|
|
264
|
+
headers: { "Content-Type": "application/json" },
|
|
265
|
+
data: sendSolanaTransactionWithEndUserAccountBody,
|
|
266
|
+
params,
|
|
267
|
+
}, options);
|
|
268
|
+
};
|
|
269
|
+
exports.sendSolanaTransactionWithEndUserAccount = sendSolanaTransactionWithEndUserAccount;
|
|
270
|
+
/**
|
|
271
|
+
* Sends USDC from an end user's Solana account to a recipient address on the Solana network. This endpoint simplifies USDC transfers by automatically handling mint resolution, Associated Token Account (ATA) creation, decimal conversion, and transaction encoding.
|
|
272
|
+
The `amount` field accepts human-readable amounts as decimal strings (e.g., "1.5", "25.50").
|
|
273
|
+
Use the optional `createRecipientAta` parameter to control whether the sender pays for creating the recipient's Associated Token Account if it doesn't exist.
|
|
274
|
+
* @summary Send USDC on Solana
|
|
122
275
|
*/
|
|
123
|
-
const
|
|
276
|
+
const sendSolanaAssetWithEndUserAccount = (userId, address, asset, sendSolanaAssetWithEndUserAccountBody, params, options) => {
|
|
124
277
|
return (0, cdpApiClient_js_1.cdpApiClient)({
|
|
125
|
-
url: `/v2/end-users/
|
|
278
|
+
url: `/v2/embedded-wallet-api/end-users/${userId}/solana/${address}/send/${asset}`,
|
|
126
279
|
method: "POST",
|
|
127
280
|
headers: { "Content-Type": "application/json" },
|
|
128
|
-
data:
|
|
281
|
+
data: sendSolanaAssetWithEndUserAccountBody,
|
|
282
|
+
params,
|
|
129
283
|
}, options);
|
|
130
284
|
};
|
|
131
|
-
exports.
|
|
285
|
+
exports.sendSolanaAssetWithEndUserAccount = sendSolanaAssetWithEndUserAccount;
|
|
132
286
|
//# sourceMappingURL=end-user-accounts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"end-user-accounts.js","sourceRoot":"","sources":["../../../../openapi-client/generated/end-user-accounts/end-user-accounts.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"end-user-accounts.js","sourceRoot":"","sources":["../../../../src/openapi-client/generated/end-user-accounts/end-user-accounts.ts"],"names":[],"mappings":";;;AAuDA,2DAAqD;AAIrD;;;;;;GAMG;AACI,MAAM,oCAAoC,GAAG,CAClD,MAAc,EACd,wCAAkF,EAClF,MAAmD,EACnD,OAAuF,EACvF,EAAE;IACF,OAAO,IAAA,8BAAY,EACjB;QACE,GAAG,EAAE,qCAAqC,MAAM,uBAAuB;QACvE,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;QAC/C,IAAI,EAAE,wCAAwC;QAC9C,MAAM;KACP,EACD,OAAO,CACR,CAAC;AACJ,CAAC,CAAC;AAhBW,QAAA,oCAAoC,wCAgB/C;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACI,MAAM,oCAAoC,GAAG,CAClD,MAAc,EACd,wCAAkF,EAClF,MAAmD,EACnD,OAAuF,EACvF,EAAE;IACF,OAAO,IAAA,8BAAY,EACjB;QACE,GAAG,EAAE,qCAAqC,MAAM,uBAAuB;QACvE,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;QAC/C,IAAI,EAAE,wCAAwC;QAC9C,MAAM;KACP,EACD,OAAO,CACR,CAAC;AACJ,CAAC,CAAC;AAhBW,QAAA,oCAAoC,wCAgB/C;AACF;;;;GAIG;AACI,MAAM,8BAA8B,GAAG,CAC5C,MAAc,EACd,OAA0B,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,cAAc,EAAE,kBAAkB,EAAE;QAC/C,IAAI,EAAE,qCAAqC;QAC3C,MAAM;KACP,EACD,OAAO,CACR,CAAC;AACJ,CAAC,CAAC;AAlBW,QAAA,iCAAiC,qCAkB5C"}
|
|
@@ -13,7 +13,7 @@ const listEvmAccounts = (params, options) => {
|
|
|
13
13
|
exports.listEvmAccounts = listEvmAccounts;
|
|
14
14
|
/**
|
|
15
15
|
* Creates a new EVM account.
|
|
16
|
-
* @summary Create
|
|
16
|
+
* @summary Create EVM account
|
|
17
17
|
*/
|
|
18
18
|
const createEvmAccount = (createEvmAccountBody, options) => {
|
|
19
19
|
return (0, cdpApiClient_js_1.cdpApiClient)({
|
|
@@ -26,7 +26,7 @@ const createEvmAccount = (createEvmAccountBody, options) => {
|
|
|
26
26
|
exports.createEvmAccount = createEvmAccount;
|
|
27
27
|
/**
|
|
28
28
|
* Gets an EVM account by its address.
|
|
29
|
-
* @summary Get
|
|
29
|
+
* @summary Get EVM account by address
|
|
30
30
|
*/
|
|
31
31
|
const getEvmAccount = (address, options) => {
|
|
32
32
|
return (0, cdpApiClient_js_1.cdpApiClient)({ url: `/v2/evm/accounts/${address}`, method: "GET" }, options);
|
|
@@ -34,7 +34,7 @@ const getEvmAccount = (address, options) => {
|
|
|
34
34
|
exports.getEvmAccount = getEvmAccount;
|
|
35
35
|
/**
|
|
36
36
|
* Updates an existing EVM account. Use this to update the account's name or account-level policy.
|
|
37
|
-
* @summary Update
|
|
37
|
+
* @summary Update EVM account
|
|
38
38
|
*/
|
|
39
39
|
const updateEvmAccount = (address, updateEvmAccountBody, options) => {
|
|
40
40
|
return (0, cdpApiClient_js_1.cdpApiClient)({
|
|
@@ -47,7 +47,7 @@ const updateEvmAccount = (address, updateEvmAccountBody, options) => {
|
|
|
47
47
|
exports.updateEvmAccount = updateEvmAccount;
|
|
48
48
|
/**
|
|
49
49
|
* Gets an EVM account by its name.
|
|
50
|
-
* @summary Get
|
|
50
|
+
* @summary Get EVM account by name
|
|
51
51
|
*/
|
|
52
52
|
const getEvmAccountByName = (name, options) => {
|
|
53
53
|
return (0, cdpApiClient_js_1.cdpApiClient)({ url: `/v2/evm/accounts/by-name/${name}`, method: "GET" }, options);
|
|
@@ -80,7 +80,7 @@ The transaction must be an [EIP-1559 dynamic fee transaction](https://github.com
|
|
|
80
80
|
- `value` *(Optional)*: The amount of ETH, in wei, to send with the transaction.
|
|
81
81
|
- `data` *(Optional)*: The data to send with the transaction; only used for contract calls.
|
|
82
82
|
- `accessList` *(Optional)*: The access list to use for the transaction.
|
|
83
|
-
* @summary Send
|
|
83
|
+
* @summary Send transaction
|
|
84
84
|
*/
|
|
85
85
|
const sendEvmTransaction = (address, sendEvmTransactionBody, options) => {
|
|
86
86
|
return (0, cdpApiClient_js_1.cdpApiClient)({
|
|
@@ -96,7 +96,7 @@ exports.sendEvmTransaction = sendEvmTransaction;
|
|
|
96
96
|
The transaction should be serialized as a hex string using [RLP](https://ethereum.org/en/developers/docs/data-structures-and-encoding/rlp/).
|
|
97
97
|
|
|
98
98
|
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.
|
|
99
|
-
* @summary Sign
|
|
99
|
+
* @summary Sign transaction
|
|
100
100
|
*/
|
|
101
101
|
const signEvmTransaction = (address, signEvmTransactionBody, options) => {
|
|
102
102
|
return (0, cdpApiClient_js_1.cdpApiClient)({
|
|
@@ -109,7 +109,7 @@ const signEvmTransaction = (address, signEvmTransactionBody, options) => {
|
|
|
109
109
|
exports.signEvmTransaction = signEvmTransaction;
|
|
110
110
|
/**
|
|
111
111
|
* Signs an arbitrary 32 byte hash with the given EVM account.
|
|
112
|
-
* @summary Sign
|
|
112
|
+
* @summary Sign hash
|
|
113
113
|
*/
|
|
114
114
|
const signEvmHash = (address, signEvmHashBody, options) => {
|
|
115
115
|
return (0, cdpApiClient_js_1.cdpApiClient)({
|
|
@@ -124,7 +124,7 @@ exports.signEvmHash = signEvmHash;
|
|
|
124
124
|
* Signs an [EIP-191](https://eips.ethereum.org/EIPS/eip-191) message with the given EVM account.
|
|
125
125
|
|
|
126
126
|
Per the specification, the message in the request body is prepended with `0x19 <0x45 (E)> <thereum Signed Message:\n" + len(message)>` before being signed.
|
|
127
|
-
* @summary Sign
|
|
127
|
+
* @summary Sign EIP-191 message
|
|
128
128
|
*/
|
|
129
129
|
const signEvmMessage = (address, signEvmMessageBody, options) => {
|
|
130
130
|
return (0, cdpApiClient_js_1.cdpApiClient)({
|
|
@@ -171,7 +171,7 @@ const createEvmEip7702Delegation = (address, createEvmEip7702DelegationBody, opt
|
|
|
171
171
|
exports.createEvmEip7702Delegation = createEvmEip7702Delegation;
|
|
172
172
|
/**
|
|
173
173
|
* Returns the EIP-7702 delegation operation. Use the delegationOperationId returned by the Create EIP-7702 delegation endpoint to poll for operation completion.
|
|
174
|
-
* @summary Get EIP-7702 delegation operation
|
|
174
|
+
* @summary Get EIP-7702 delegation operation by ID
|
|
175
175
|
*/
|
|
176
176
|
const getEvmEip7702DelegationOperationById = (delegationOperationId, options) => {
|
|
177
177
|
return (0, cdpApiClient_js_1.cdpApiClient)({ url: `/v2/evm/eip7702/delegation-operations/${delegationOperationId}`, method: "GET" }, options);
|
|
@@ -179,7 +179,7 @@ const getEvmEip7702DelegationOperationById = (delegationOperationId, options) =>
|
|
|
179
179
|
exports.getEvmEip7702DelegationOperationById = getEvmEip7702DelegationOperationById;
|
|
180
180
|
/**
|
|
181
181
|
* 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.
|
|
182
|
-
* @summary Import
|
|
182
|
+
* @summary Import EVM account
|
|
183
183
|
*/
|
|
184
184
|
const importEvmAccount = (importEvmAccountBody, options) => {
|
|
185
185
|
return (0, cdpApiClient_js_1.cdpApiClient)({
|
|
@@ -192,7 +192,7 @@ const importEvmAccount = (importEvmAccountBody, options) => {
|
|
|
192
192
|
exports.importEvmAccount = importEvmAccount;
|
|
193
193
|
/**
|
|
194
194
|
* Export an existing EVM account's private key. It is important to store the private key in a secure place after it's exported.
|
|
195
|
-
* @summary Export
|
|
195
|
+
* @summary Export EVM account
|
|
196
196
|
*/
|
|
197
197
|
const exportEvmAccount = (address, exportEvmAccountBody, options) => {
|
|
198
198
|
return (0, cdpApiClient_js_1.cdpApiClient)({
|
|
@@ -205,7 +205,7 @@ const exportEvmAccount = (address, exportEvmAccountBody, options) => {
|
|
|
205
205
|
exports.exportEvmAccount = exportEvmAccount;
|
|
206
206
|
/**
|
|
207
207
|
* 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.
|
|
208
|
-
* @summary Export
|
|
208
|
+
* @summary Export EVM account by name
|
|
209
209
|
*/
|
|
210
210
|
const exportEvmAccountByName = (name, exportEvmAccountByNameBody, options) => {
|
|
211
211
|
return (0, cdpApiClient_js_1.cdpApiClient)({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"evm-accounts.js","sourceRoot":"","sources":["../../../../openapi-client/generated/evm-accounts/evm-accounts.ts"],"names":[],"mappings":";;;AAiCA,2DAAqD;AAIrD;;;;GAIG;AACI,MAAM,eAAe,GAAG,CAC7B,MAA8B,EAC9B,OAAkE,EAClE,EAAE;IACF,OAAO,IAAA,8BAAY,EACjB,EAAE,GAAG,EAAE,kBAAkB,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,EAClD,OAAO,CACR,CAAC;AACJ,CAAC,CAAC;AARW,QAAA,eAAe,mBAQ1B;AACF;;;GAGG;AACI,MAAM,gBAAgB,GAAG,CAC9B,oBAA2C,EAC3C,OAA0D,EAC1D,EAAE;IACF,OAAO,IAAA,8BAAY,EACjB;QACE,GAAG,EAAE,kBAAkB;QACvB,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;QAC/C,IAAI,EAAE,oBAAoB;KAC3B,E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E,EAAE,cAAc,EAAE,kBAAkB,EAAE;QAC/C,IAAI,EAAE,oBAAoB;KAC3B,EACD,OAAO,CACR,CAAC;AACJ,CAAC,CAAC;AAdW,QAAA,gBAAgB,oBAc3B;AACF;;;GAGG;AACI,MAAM,sBAAsB,GAAG,CACpC,IAAY,EACZ,0BAAsD,EACtD,OAAyE,EACzE,EAAE;IACF,OAAO,IAAA,8BAAY,EACjB;QACE,GAAG,EAAE,mCAAmC,IAAI,EAAE;QAC9C,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;QAC/C,IAAI,EAAE,0BAA0B;KACjC,EACD,OAAO,CACR,CAAC;AACJ,CAAC,CAAC;AAdW,QAAA,sBAAsB,0BAcjC"}
|
|
1
|
+
{"version":3,"file":"evm-accounts.js","sourceRoot":"","sources":["../../../../src/openapi-client/generated/evm-accounts/evm-accounts.ts"],"names":[],"mappings":";;;AAiCA,2DAAqD;AAIrD;;;;GAIG;AACI,MAAM,eAAe,GAAG,CAC7B,MAA8B,EAC9B,OAAkE,EAClE,EAAE;IACF,OAAO,IAAA,8BAAY,EACjB,EAAE,GAAG,EAAE,kBAAkB,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,EAClD,OAAO,CACR,CAAC;AACJ,CAAC,CAAC;AARW,QAAA,eAAe,mBAQ1B;AACF;;;GAGG;AACI,MAAM,gBAAgB,GAAG,CAC9B,oBAA2C,EAC3C,OAA0D,EAC1D,EAAE;IACF,OAAO,IAAA,8BAAY,EACjB;QACE,GAAG,EAAE,kBAAkB;QACvB,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;QAC/C,IAAI,EAAE,oBAAoB;KAC3B,EACD,OAAO,CACR,CAAC;AACJ,CAAC,CAAC;AAbW,QAAA,gBAAgB,oBAa3B;AACF;;;GAGG;AACI,MAAM,aAAa,GAAG,CAC3B,OAAe,EACf,OAA0D,EAC1D,EAAE;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;;;GAGG;AACI,MAAM,sBAAsB,GAAG,CACpC,IAAY,EACZ,0BAAsD,EACtD,OAAyE,EACzE,EAAE;IACF,OAAO,IAAA,8BAAY,EACjB;QACE,GAAG,EAAE,mCAAmC,IAAI,EAAE;QAC9C,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;QAC/C,IAAI,EAAE,0BAA0B;KACjC,EACD,OAAO,CACR,CAAC;AACJ,CAAC,CAAC;AAdW,QAAA,sBAAsB,0BAcjC"}
|
|
@@ -13,7 +13,7 @@ const listEvmSmartAccounts = (params, options) => {
|
|
|
13
13
|
exports.listEvmSmartAccounts = listEvmSmartAccounts;
|
|
14
14
|
/**
|
|
15
15
|
* Creates a new Smart Account.
|
|
16
|
-
* @summary Create
|
|
16
|
+
* @summary Create Smart Account
|
|
17
17
|
*/
|
|
18
18
|
const createEvmSmartAccount = (createEvmSmartAccountBody, options) => {
|
|
19
19
|
return (0, cdpApiClient_js_1.cdpApiClient)({
|
|
@@ -26,7 +26,7 @@ const createEvmSmartAccount = (createEvmSmartAccountBody, options) => {
|
|
|
26
26
|
exports.createEvmSmartAccount = createEvmSmartAccount;
|
|
27
27
|
/**
|
|
28
28
|
* Gets a Smart Account by its name.
|
|
29
|
-
* @summary Get
|
|
29
|
+
* @summary Get Smart Account by name
|
|
30
30
|
*/
|
|
31
31
|
const getEvmSmartAccountByName = (name, options) => {
|
|
32
32
|
return (0, cdpApiClient_js_1.cdpApiClient)({ url: `/v2/evm/smart-accounts/by-name/${name}`, method: "GET" }, options);
|
|
@@ -34,7 +34,7 @@ const getEvmSmartAccountByName = (name, options) => {
|
|
|
34
34
|
exports.getEvmSmartAccountByName = getEvmSmartAccountByName;
|
|
35
35
|
/**
|
|
36
36
|
* Gets a Smart Account by its address.
|
|
37
|
-
* @summary Get
|
|
37
|
+
* @summary Get Smart Account by address
|
|
38
38
|
*/
|
|
39
39
|
const getEvmSmartAccount = (address, options) => {
|
|
40
40
|
return (0, cdpApiClient_js_1.cdpApiClient)({ url: `/v2/evm/smart-accounts/${address}`, method: "GET" }, options);
|
|
@@ -42,7 +42,7 @@ const getEvmSmartAccount = (address, options) => {
|
|
|
42
42
|
exports.getEvmSmartAccount = getEvmSmartAccount;
|
|
43
43
|
/**
|
|
44
44
|
* Updates an existing EVM smart account. Use this to update the smart account's name.
|
|
45
|
-
* @summary Update
|
|
45
|
+
* @summary Update EVM Smart Account
|
|
46
46
|
*/
|
|
47
47
|
const updateEvmSmartAccount = (address, updateEvmSmartAccountBody, options) => {
|
|
48
48
|
return (0, cdpApiClient_js_1.cdpApiClient)({
|
|
@@ -55,7 +55,7 @@ const updateEvmSmartAccount = (address, updateEvmSmartAccountBody, options) => {
|
|
|
55
55
|
exports.updateEvmSmartAccount = updateEvmSmartAccount;
|
|
56
56
|
/**
|
|
57
57
|
* Prepares a new user operation on a Smart Account for a specific network.
|
|
58
|
-
* @summary Prepare
|
|
58
|
+
* @summary Prepare user operation
|
|
59
59
|
*/
|
|
60
60
|
const prepareUserOperation = (address, prepareUserOperationBody, options) => {
|
|
61
61
|
return (0, cdpApiClient_js_1.cdpApiClient)({
|
|
@@ -68,7 +68,7 @@ const prepareUserOperation = (address, prepareUserOperationBody, options) => {
|
|
|
68
68
|
exports.prepareUserOperation = prepareUserOperation;
|
|
69
69
|
/**
|
|
70
70
|
* 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.
|
|
71
|
-
* @summary Prepare and send
|
|
71
|
+
* @summary Prepare and send user operation
|
|
72
72
|
*/
|
|
73
73
|
const prepareAndSendUserOperation = (address, prepareAndSendUserOperationBody, options) => {
|
|
74
74
|
return (0, cdpApiClient_js_1.cdpApiClient)({
|
|
@@ -81,7 +81,7 @@ const prepareAndSendUserOperation = (address, prepareAndSendUserOperationBody, o
|
|
|
81
81
|
exports.prepareAndSendUserOperation = prepareAndSendUserOperation;
|
|
82
82
|
/**
|
|
83
83
|
* Gets a user operation by its hash.
|
|
84
|
-
* @summary Get
|
|
84
|
+
* @summary Get user operation
|
|
85
85
|
*/
|
|
86
86
|
const getUserOperation = (address, userOpHash, options) => {
|
|
87
87
|
return (0, cdpApiClient_js_1.cdpApiClient)({ url: `/v2/evm/smart-accounts/${address}/user-operations/${userOpHash}`, method: "GET" }, options);
|
|
@@ -92,7 +92,7 @@ exports.getUserOperation = getUserOperation;
|
|
|
92
92
|
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).
|
|
93
93
|
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)
|
|
94
94
|
If using the CDP Paymaster, the user operation must be signed and sent within 2 minutes of being prepared.
|
|
95
|
-
* @summary Send
|
|
95
|
+
* @summary Send user operation
|
|
96
96
|
*/
|
|
97
97
|
const sendUserOperation = (address, userOpHash, sendUserOperationBody, options) => {
|
|
98
98
|
return (0, cdpApiClient_js_1.cdpApiClient)({
|
|
@@ -105,7 +105,7 @@ const sendUserOperation = (address, userOpHash, sendUserOperationBody, options)
|
|
|
105
105
|
exports.sendUserOperation = sendUserOperation;
|
|
106
106
|
/**
|
|
107
107
|
* Creates a spend permission for the given smart account address.
|
|
108
|
-
* @summary Create
|
|
108
|
+
* @summary Create spend permission
|
|
109
109
|
*/
|
|
110
110
|
const createSpendPermission = (address, createSpendPermissionRequest, options) => {
|
|
111
111
|
return (0, cdpApiClient_js_1.cdpApiClient)({
|
|
@@ -126,7 +126,7 @@ const listSpendPermissions = (address, params, options) => {
|
|
|
126
126
|
exports.listSpendPermissions = listSpendPermissions;
|
|
127
127
|
/**
|
|
128
128
|
* Revokes an existing spend permission.
|
|
129
|
-
* @summary Revoke
|
|
129
|
+
* @summary Revoke spend permission
|
|
130
130
|
*/
|
|
131
131
|
const revokeSpendPermission = (address, revokeSpendPermissionRequest, options) => {
|
|
132
132
|
return (0, cdpApiClient_js_1.cdpApiClient)({
|