@coinbase/cdp-sdk 1.44.1 → 1.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -2
- package/README.md +164 -43
- package/_cjs/accounts/evm/eip6492.js +49 -0
- package/_cjs/accounts/evm/eip6492.js.map +1 -0
- package/_cjs/accounts/evm/toEvmDelegatedAccount.js +27 -0
- package/_cjs/accounts/evm/toEvmDelegatedAccount.js.map +1 -0
- package/_cjs/accounts/evm/toEvmServerAccount.js +127 -55
- package/_cjs/accounts/evm/toEvmServerAccount.js.map +1 -1
- package/_cjs/accounts/evm/toEvmSmartAccount.js +115 -45
- package/_cjs/accounts/evm/toEvmSmartAccount.js.map +1 -1
- package/_cjs/accounts/evm/toNetworkScopedEvmSmartAccount.js +31 -0
- package/_cjs/accounts/evm/toNetworkScopedEvmSmartAccount.js.map +1 -1
- package/_cjs/accounts/solana/toSolanaAccount.js +49 -19
- package/_cjs/accounts/solana/toSolanaAccount.js.map +1 -1
- package/_cjs/actions/evm/waitForEvmEip7702DelegationStatus.js +37 -0
- package/_cjs/actions/evm/waitForEvmEip7702DelegationStatus.js.map +1 -0
- package/_cjs/actions/solana/transfer.js.map +1 -1
- package/_cjs/actions/solana/utils.js +9 -9
- package/_cjs/actions/solana/utils.js.map +1 -1
- package/_cjs/analytics.js +10 -228
- package/_cjs/analytics.js.map +1 -1
- package/_cjs/auth/utils/http.js +1 -0
- package/_cjs/auth/utils/http.js.map +1 -1
- package/_cjs/client/cdp.js +4 -7
- package/_cjs/client/cdp.js.map +1 -1
- package/_cjs/client/end-user/endUser.js +385 -4
- package/_cjs/client/end-user/endUser.js.map +1 -1
- package/_cjs/client/end-user/toEndUserAccount.js +201 -23
- package/_cjs/client/end-user/toEndUserAccount.js.map +1 -1
- package/_cjs/client/evm/evm.js +482 -227
- package/_cjs/client/evm/evm.js.map +1 -1
- package/_cjs/client/policies/policies.js +41 -11
- package/_cjs/client/policies/policies.js.map +1 -1
- package/_cjs/client/solana/solana.js +215 -118
- package/_cjs/client/solana/solana.js.map +1 -1
- package/_cjs/index.js +3 -1
- package/_cjs/index.js.map +1 -1
- package/_cjs/openapi-client/cdpApiClient.js +32 -0
- package/_cjs/openapi-client/cdpApiClient.js.map +1 -1
- package/_cjs/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +178 -9
- package/_cjs/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js.map +1 -1
- package/_cjs/openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.js +261 -0
- package/_cjs/openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.js.map +1 -0
- package/_cjs/openapi-client/generated/end-user-accounts/end-user-accounts.js.map +1 -1
- package/_cjs/openapi-client/generated/evm-accounts/evm-accounts.js +30 -1
- package/_cjs/openapi-client/generated/evm-accounts/evm-accounts.js.map +1 -1
- package/_cjs/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js +2 -2
- package/_cjs/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js.map +1 -1
- package/_cjs/openapi-client/generated/evm-swaps/evm-swaps.js.map +1 -1
- package/_cjs/openapi-client/generated/evm-token-balances/evm-token-balances.js.map +1 -1
- package/_cjs/openapi-client/generated/faucets/faucets.js +6 -5
- package/_cjs/openapi-client/generated/faucets/faucets.js.map +1 -1
- package/_cjs/openapi-client/generated/onchain-data/onchain-data.js.map +1 -1
- package/_cjs/openapi-client/generated/onramp/onramp.js +15 -1
- package/_cjs/openapi-client/generated/onramp/onramp.js.map +1 -1
- package/_cjs/openapi-client/generated/policy-engine/policy-engine.js.map +1 -1
- package/_cjs/openapi-client/generated/solana-accounts/solana-accounts.js.map +1 -1
- package/_cjs/openapi-client/generated/solana-token-balances/solana-token-balances.js.map +1 -1
- package/_cjs/openapi-client/generated/sql-api/sql-api.js +75 -0
- package/_cjs/openapi-client/generated/sql-api/sql-api.js.map +1 -0
- package/_cjs/openapi-client/generated/webhooks/webhooks.js.map +1 -1
- package/_cjs/openapi-client/generated/x402-facilitator/x402-facilitator.js.map +1 -1
- package/_cjs/openapi-client/index.js +4 -1
- package/_cjs/openapi-client/index.js.map +1 -1
- package/_cjs/policies/evmSchema.js +127 -1
- package/_cjs/policies/evmSchema.js.map +1 -1
- package/_cjs/policies/solanaSchema.js +102 -1
- package/_cjs/policies/solanaSchema.js.map +1 -1
- package/_cjs/policies/types.js +7 -0
- package/_cjs/policies/types.js.map +1 -1
- package/_cjs/utils/export.js +6 -5
- package/_cjs/utils/export.js.map +1 -1
- package/_cjs/version.js +1 -1
- package/_esm/accounts/evm/eip6492.js +46 -0
- package/_esm/accounts/evm/eip6492.js.map +1 -0
- package/_esm/accounts/evm/toEvmDelegatedAccount.js +24 -0
- package/_esm/accounts/evm/toEvmDelegatedAccount.js.map +1 -0
- package/_esm/accounts/evm/toEvmServerAccount.js +127 -55
- package/_esm/accounts/evm/toEvmServerAccount.js.map +1 -1
- package/_esm/accounts/evm/toEvmSmartAccount.js +115 -45
- package/_esm/accounts/evm/toEvmSmartAccount.js.map +1 -1
- package/_esm/accounts/evm/toNetworkScopedEvmSmartAccount.js +31 -0
- package/_esm/accounts/evm/toNetworkScopedEvmSmartAccount.js.map +1 -1
- package/_esm/accounts/solana/toSolanaAccount.js +49 -19
- package/_esm/accounts/solana/toSolanaAccount.js.map +1 -1
- package/_esm/actions/evm/waitForEvmEip7702DelegationStatus.js +34 -0
- package/_esm/actions/evm/waitForEvmEip7702DelegationStatus.js.map +1 -0
- package/_esm/actions/solana/transfer.js.map +1 -1
- package/_esm/actions/solana/utils.js +9 -9
- package/_esm/actions/solana/utils.js.map +1 -1
- package/_esm/analytics.js +9 -227
- package/_esm/analytics.js.map +1 -1
- package/_esm/auth/utils/http.js +1 -0
- package/_esm/auth/utils/http.js.map +1 -1
- package/_esm/client/cdp.js +4 -7
- package/_esm/client/cdp.js.map +1 -1
- package/_esm/client/end-user/endUser.js +385 -4
- package/_esm/client/end-user/endUser.js.map +1 -1
- package/_esm/client/end-user/toEndUserAccount.js +201 -23
- package/_esm/client/end-user/toEndUserAccount.js.map +1 -1
- package/_esm/client/evm/evm.js +482 -227
- package/_esm/client/evm/evm.js.map +1 -1
- package/_esm/client/policies/policies.js +41 -11
- package/_esm/client/policies/policies.js.map +1 -1
- package/_esm/client/solana/solana.js +215 -118
- package/_esm/client/solana/solana.js.map +1 -1
- package/_esm/index.js +1 -0
- package/_esm/index.js.map +1 -1
- package/_esm/openapi-client/cdpApiClient.js +32 -0
- package/_esm/openapi-client/cdpApiClient.js.map +1 -1
- package/_esm/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +175 -7
- package/_esm/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js.map +1 -1
- package/_esm/openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.js +243 -0
- package/_esm/openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.js.map +1 -0
- package/_esm/openapi-client/generated/end-user-accounts/end-user-accounts.js.map +1 -1
- package/_esm/openapi-client/generated/evm-accounts/evm-accounts.js +27 -0
- package/_esm/openapi-client/generated/evm-accounts/evm-accounts.js.map +1 -1
- package/_esm/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js +2 -2
- package/_esm/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js.map +1 -1
- package/_esm/openapi-client/generated/evm-swaps/evm-swaps.js.map +1 -1
- package/_esm/openapi-client/generated/evm-token-balances/evm-token-balances.js.map +1 -1
- package/_esm/openapi-client/generated/faucets/faucets.js +6 -5
- package/_esm/openapi-client/generated/faucets/faucets.js.map +1 -1
- package/_esm/openapi-client/generated/onchain-data/onchain-data.js.map +1 -1
- package/_esm/openapi-client/generated/onramp/onramp.js +13 -0
- package/_esm/openapi-client/generated/onramp/onramp.js.map +1 -1
- package/_esm/openapi-client/generated/policy-engine/policy-engine.js.map +1 -1
- package/_esm/openapi-client/generated/solana-accounts/solana-accounts.js.map +1 -1
- package/_esm/openapi-client/generated/solana-token-balances/solana-token-balances.js.map +1 -1
- package/_esm/openapi-client/generated/sql-api/sql-api.js +70 -0
- package/_esm/openapi-client/generated/sql-api/sql-api.js.map +1 -0
- package/_esm/openapi-client/generated/webhooks/webhooks.js.map +1 -1
- package/_esm/openapi-client/generated/x402-facilitator/x402-facilitator.js.map +1 -1
- package/_esm/openapi-client/index.js +4 -1
- package/_esm/openapi-client/index.js.map +1 -1
- package/_esm/policies/evmSchema.js +126 -0
- package/_esm/policies/evmSchema.js.map +1 -1
- package/_esm/policies/solanaSchema.js +101 -0
- package/_esm/policies/solanaSchema.js.map +1 -1
- package/_esm/policies/types.js +9 -2
- package/_esm/policies/types.js.map +1 -1
- package/_esm/utils/export.js +6 -5
- package/_esm/utils/export.js.map +1 -1
- package/_esm/version.js +1 -1
- package/_types/accounts/evm/eip6492.d.ts +17 -0
- package/_types/accounts/evm/eip6492.d.ts.map +1 -0
- package/_types/accounts/evm/toEvmDelegatedAccount.d.ts +13 -0
- package/_types/accounts/evm/toEvmDelegatedAccount.d.ts.map +1 -0
- package/_types/accounts/evm/toEvmServerAccount.d.ts.map +1 -1
- package/_types/accounts/evm/toEvmSmartAccount.d.ts.map +1 -1
- package/_types/accounts/evm/toNetworkScopedEvmSmartAccount.d.ts +4 -4
- package/_types/accounts/evm/toNetworkScopedEvmSmartAccount.d.ts.map +1 -1
- package/_types/accounts/evm/types.d.ts +3 -2
- package/_types/accounts/evm/types.d.ts.map +1 -1
- package/_types/accounts/solana/toSolanaAccount.d.ts.map +1 -1
- package/_types/actions/evm/waitForEvmEip7702DelegationStatus.d.ts +32 -0
- package/_types/actions/evm/waitForEvmEip7702DelegationStatus.d.ts.map +1 -0
- package/_types/actions/solana/transfer.d.ts +3 -4
- package/_types/actions/solana/transfer.d.ts.map +1 -1
- package/_types/actions/solana/types.d.ts +79 -29
- package/_types/actions/solana/types.d.ts.map +1 -1
- package/_types/actions/solana/utils.d.ts +10 -9
- package/_types/actions/solana/utils.d.ts.map +1 -1
- package/_types/analytics.d.ts +5 -38
- package/_types/analytics.d.ts.map +1 -1
- package/_types/auth/utils/http.d.ts.map +1 -1
- package/_types/client/cdp.d.ts +4 -0
- package/_types/client/cdp.d.ts.map +1 -1
- package/_types/client/end-user/endUser.d.ts +272 -1
- package/_types/client/end-user/endUser.d.ts.map +1 -1
- package/_types/client/end-user/endUser.types.d.ts +491 -1
- package/_types/client/end-user/endUser.types.d.ts.map +1 -1
- package/_types/client/end-user/toEndUserAccount.d.ts +4 -1
- package/_types/client/end-user/toEndUserAccount.d.ts.map +1 -1
- package/_types/client/evm/evm.d.ts +54 -1
- package/_types/client/evm/evm.d.ts.map +1 -1
- package/_types/client/evm/evm.types.d.ts +29 -2
- package/_types/client/evm/evm.types.d.ts.map +1 -1
- package/_types/client/policies/policies.d.ts.map +1 -1
- package/_types/client/solana/solana.d.ts +38 -12
- package/_types/client/solana/solana.d.ts.map +1 -1
- package/_types/index.d.ts +3 -1
- package/_types/index.d.ts.map +1 -1
- package/_types/openapi-client/cdpApiClient.d.ts.map +1 -1
- package/_types/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts +884 -90
- package/_types/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts.map +1 -1
- package/_types/openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.d.ts +163 -0
- package/_types/openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.d.ts.map +1 -0
- package/_types/openapi-client/generated/end-user-accounts/end-user-accounts.d.ts +9 -9
- package/_types/openapi-client/generated/end-user-accounts/end-user-accounts.d.ts.map +1 -1
- package/_types/openapi-client/generated/evm-accounts/evm-accounts.d.ts +35 -15
- package/_types/openapi-client/generated/evm-accounts/evm-accounts.d.ts.map +1 -1
- package/_types/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.d.ts +14 -14
- package/_types/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.d.ts.map +1 -1
- package/_types/openapi-client/generated/evm-swaps/evm-swaps.d.ts +3 -3
- package/_types/openapi-client/generated/evm-swaps/evm-swaps.d.ts.map +1 -1
- package/_types/openapi-client/generated/evm-token-balances/evm-token-balances.d.ts +2 -2
- package/_types/openapi-client/generated/evm-token-balances/evm-token-balances.d.ts.map +1 -1
- package/_types/openapi-client/generated/faucets/faucets.d.ts +9 -8
- package/_types/openapi-client/generated/faucets/faucets.d.ts.map +1 -1
- package/_types/openapi-client/generated/onchain-data/onchain-data.d.ts +3 -3
- package/_types/openapi-client/generated/onchain-data/onchain-data.d.ts.map +1 -1
- package/_types/openapi-client/generated/onramp/onramp.d.ts +12 -5
- package/_types/openapi-client/generated/onramp/onramp.d.ts.map +1 -1
- package/_types/openapi-client/generated/policy-engine/policy-engine.d.ts +6 -6
- package/_types/openapi-client/generated/policy-engine/policy-engine.d.ts.map +1 -1
- package/_types/openapi-client/generated/solana-accounts/solana-accounts.d.ts +12 -12
- package/_types/openapi-client/generated/solana-accounts/solana-accounts.d.ts.map +1 -1
- package/_types/openapi-client/generated/solana-token-balances/solana-token-balances.d.ts +2 -2
- package/_types/openapi-client/generated/solana-token-balances/solana-token-balances.d.ts.map +1 -1
- package/_types/openapi-client/generated/sql-api/sql-api.d.ts +73 -0
- package/_types/openapi-client/generated/sql-api/sql-api.d.ts.map +1 -0
- package/_types/openapi-client/generated/webhooks/webhooks.d.ts +6 -6
- package/_types/openapi-client/generated/webhooks/webhooks.d.ts.map +1 -1
- package/_types/openapi-client/generated/x402-facilitator/x402-facilitator.d.ts +4 -4
- package/_types/openapi-client/generated/x402-facilitator/x402-facilitator.d.ts.map +1 -1
- package/_types/openapi-client/index.d.ts +23 -3
- package/_types/openapi-client/index.d.ts.map +1 -1
- package/_types/policies/evmSchema.d.ts +3128 -1064
- package/_types/policies/evmSchema.d.ts.map +1 -1
- package/_types/policies/solanaSchema.d.ts +1411 -47
- package/_types/policies/solanaSchema.d.ts.map +1 -1
- package/_types/policies/types.d.ts +8427 -2942
- package/_types/policies/types.d.ts.map +1 -1
- package/_types/types/contract.d.ts.map +1 -1
- package/_types/utils/export.d.ts +1 -1
- package/_types/utils/export.d.ts.map +1 -1
- package/_types/version.d.ts +1 -1
- package/accounts/evm/eip6492.ts +60 -0
- package/accounts/evm/toEvmDelegatedAccount.ts +26 -0
- package/accounts/evm/toEvmServerAccount.ts +115 -67
- package/accounts/evm/toEvmSmartAccount.ts +114 -57
- package/accounts/evm/toNetworkScopedEvmSmartAccount.ts +44 -5
- package/accounts/evm/types.ts +8 -3
- package/accounts/solana/toSolanaAccount.ts +44 -24
- package/actions/evm/waitForEvmEip7702DelegationStatus.ts +57 -0
- package/actions/solana/transfer.ts +3 -3
- package/actions/solana/types.ts +79 -29
- package/actions/solana/utils.ts +13 -11
- package/analytics.ts +8 -294
- package/auth/utils/http.ts +1 -0
- package/client/cdp.ts +6 -8
- package/client/end-user/endUser.ts +513 -4
- package/client/end-user/endUser.types.ts +598 -0
- package/client/end-user/toEndUserAccount.ts +330 -26
- package/client/evm/evm.ts +517 -282
- package/client/evm/evm.types.ts +45 -2
- package/client/policies/policies.ts +41 -16
- package/client/solana/solana.ts +233 -153
- package/index.ts +36 -1
- package/openapi-client/cdpApiClient.ts +34 -0
- package/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.ts +1155 -172
- package/openapi-client/generated/embedded-wallets-core-functionality/embedded-wallets-core-functionality.ts +455 -0
- package/openapi-client/generated/end-user-accounts/end-user-accounts.ts +12 -9
- package/openapi-client/generated/evm-accounts/evm-accounts.ts +66 -14
- package/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.ts +16 -16
- package/openapi-client/generated/evm-swaps/evm-swaps.ts +3 -3
- package/openapi-client/generated/evm-token-balances/evm-token-balances.ts +2 -2
- package/openapi-client/generated/faucets/faucets.ts +9 -8
- package/openapi-client/generated/onchain-data/onchain-data.ts +3 -3
- package/openapi-client/generated/onramp/onramp.ts +28 -4
- package/openapi-client/generated/policy-engine/policy-engine.ts +12 -6
- package/openapi-client/generated/solana-accounts/solana-accounts.ts +12 -12
- package/openapi-client/generated/solana-token-balances/solana-token-balances.ts +2 -2
- package/openapi-client/generated/sql-api/sql-api.ts +92 -0
- package/openapi-client/generated/webhooks/webhooks.ts +6 -6
- package/openapi-client/generated/x402-facilitator/x402-facilitator.ts +6 -4
- package/openapi-client/index.ts +4 -1
- package/package.json +7 -8
- package/policies/evmSchema.ts +164 -0
- package/policies/solanaSchema.ts +130 -0
- package/policies/types.ts +14 -0
- package/types/contract.ts +2 -4
- package/utils/export.ts +6 -5
- package/version.ts +1 -1
- package/_cjs/openapi-client/generated/sql-api-alpha/sql-api-alpha.js +0 -55
- package/_cjs/openapi-client/generated/sql-api-alpha/sql-api-alpha.js.map +0 -1
- package/_esm/openapi-client/generated/sql-api-alpha/sql-api-alpha.js +0 -50
- package/_esm/openapi-client/generated/sql-api-alpha/sql-api-alpha.js.map +0 -1
- package/_types/openapi-client/generated/sql-api-alpha/sql-api-alpha.d.ts +0 -53
- package/_types/openapi-client/generated/sql-api-alpha/sql-api-alpha.d.ts.map +0 -1
- package/openapi-client/generated/sql-api-alpha/sql-api-alpha.ts +0 -72
|
@@ -7,6 +7,27 @@ import type {
|
|
|
7
7
|
AddEndUserEvmSmartAccount201,
|
|
8
8
|
AddEndUserSolanaAccount201,
|
|
9
9
|
EndUser as OpenAPIEndUser,
|
|
10
|
+
SignEvmHashWithEndUserAccount200,
|
|
11
|
+
SignEvmTransactionWithEndUserAccount200,
|
|
12
|
+
SignEvmMessageWithEndUserAccount200,
|
|
13
|
+
SignEvmTypedDataWithEndUserAccount200,
|
|
14
|
+
SendEvmTransactionWithEndUserAccount200,
|
|
15
|
+
SendEvmTransactionWithEndUserAccountBodyNetwork,
|
|
16
|
+
SendEvmAssetWithEndUserAccount200,
|
|
17
|
+
SendEvmAssetWithEndUserAccountBodyNetwork,
|
|
18
|
+
SendUserOperationWithEndUserAccountResult,
|
|
19
|
+
EvmUserOperationNetwork,
|
|
20
|
+
EvmCall,
|
|
21
|
+
CreateEvmEip7702DelegationWithEndUserAccount201,
|
|
22
|
+
EvmEip7702DelegationNetwork,
|
|
23
|
+
SignSolanaHashWithEndUserAccount200,
|
|
24
|
+
SignSolanaMessageWithEndUserAccount200,
|
|
25
|
+
SignSolanaTransactionWithEndUserAccount200,
|
|
26
|
+
SendSolanaTransactionWithEndUserAccount200,
|
|
27
|
+
SendSolanaTransactionWithEndUserAccountBodyNetwork,
|
|
28
|
+
SendSolanaAssetWithEndUserAccount200,
|
|
29
|
+
SendSolanaAssetWithEndUserAccountBodyNetwork,
|
|
30
|
+
EIP712Message,
|
|
10
31
|
} from "../../openapi-client/index.js";
|
|
11
32
|
import type { Prettify } from "../../types/utils.js";
|
|
12
33
|
|
|
@@ -120,6 +141,444 @@ export interface ImportEndUserOptions {
|
|
|
120
141
|
encryptionPublicKey?: string;
|
|
121
142
|
}
|
|
122
143
|
|
|
144
|
+
/**
|
|
145
|
+
* The options for revoking all active delegations for an end user.
|
|
146
|
+
*/
|
|
147
|
+
export interface RevokeDelegationForEndUserOptions {
|
|
148
|
+
/**
|
|
149
|
+
* The unique identifier of the end user.
|
|
150
|
+
*/
|
|
151
|
+
userId: string;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
// ─── EVM Sign Options/Results ───
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* The options for signing an EVM hash on behalf of an end user.
|
|
158
|
+
*/
|
|
159
|
+
export interface SignEvmHashOptions {
|
|
160
|
+
/** The unique identifier of the end user. */
|
|
161
|
+
userId: string;
|
|
162
|
+
/** The 32-byte hash to sign, hex-encoded. */
|
|
163
|
+
hash: string;
|
|
164
|
+
/** The EVM address to sign with. */
|
|
165
|
+
address: string;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* The result of signing an EVM hash on behalf of an end user.
|
|
170
|
+
*/
|
|
171
|
+
export type SignEvmHashResult = SignEvmHashWithEndUserAccount200;
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* The options for signing an EVM transaction on behalf of an end user.
|
|
175
|
+
*/
|
|
176
|
+
export interface SignEvmTransactionOptions {
|
|
177
|
+
/** The unique identifier of the end user. */
|
|
178
|
+
userId: string;
|
|
179
|
+
/** The EVM address to sign with. */
|
|
180
|
+
address: string;
|
|
181
|
+
/** The RLP-serialized EIP-1559 transaction to sign, hex-encoded. */
|
|
182
|
+
transaction: string;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* The result of signing an EVM transaction on behalf of an end user.
|
|
187
|
+
*/
|
|
188
|
+
export type SignEvmTransactionResult = SignEvmTransactionWithEndUserAccount200;
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* The options for signing an EVM message on behalf of an end user.
|
|
192
|
+
*/
|
|
193
|
+
export interface SignEvmMessageOptions {
|
|
194
|
+
/** The unique identifier of the end user. */
|
|
195
|
+
userId: string;
|
|
196
|
+
/** The EVM address to sign with. */
|
|
197
|
+
address: string;
|
|
198
|
+
/** The EIP-191 message to sign. */
|
|
199
|
+
message: string;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* The result of signing an EVM message on behalf of an end user.
|
|
204
|
+
*/
|
|
205
|
+
export type SignEvmMessageResult = SignEvmMessageWithEndUserAccount200;
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* The options for signing EVM EIP-712 typed data on behalf of an end user.
|
|
209
|
+
*/
|
|
210
|
+
export interface SignEvmTypedDataOptions {
|
|
211
|
+
/** The unique identifier of the end user. */
|
|
212
|
+
userId: string;
|
|
213
|
+
/** The EVM address to sign with. */
|
|
214
|
+
address: string;
|
|
215
|
+
/** The EIP-712 typed data to sign. */
|
|
216
|
+
typedData: EIP712Message;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* The result of signing EVM typed data on behalf of an end user.
|
|
221
|
+
*/
|
|
222
|
+
export type SignEvmTypedDataResult = SignEvmTypedDataWithEndUserAccount200;
|
|
223
|
+
|
|
224
|
+
// ─── EVM Send Options/Results ───
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* The options for sending an EVM transaction on behalf of an end user.
|
|
228
|
+
*/
|
|
229
|
+
export interface SendEvmTransactionOptions {
|
|
230
|
+
/** The unique identifier of the end user. */
|
|
231
|
+
userId: string;
|
|
232
|
+
/** The EVM address to send from. */
|
|
233
|
+
address: string;
|
|
234
|
+
/** The RLP-serialized EIP-1559 transaction to send, hex-encoded. */
|
|
235
|
+
transaction: string;
|
|
236
|
+
/** The network to send the transaction on. */
|
|
237
|
+
network: SendEvmTransactionWithEndUserAccountBodyNetwork;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* The result of sending an EVM transaction on behalf of an end user.
|
|
242
|
+
*/
|
|
243
|
+
export type SendEvmTransactionResult = SendEvmTransactionWithEndUserAccount200;
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* The options for sending an EVM asset on behalf of an end user.
|
|
247
|
+
*/
|
|
248
|
+
export interface SendEvmAssetOptions {
|
|
249
|
+
/** The unique identifier of the end user. */
|
|
250
|
+
userId: string;
|
|
251
|
+
/** The EVM address to send from. */
|
|
252
|
+
address: string;
|
|
253
|
+
/** The asset to send. Defaults to "usdc". */
|
|
254
|
+
asset?: "usdc";
|
|
255
|
+
/** The recipient address. */
|
|
256
|
+
to: string;
|
|
257
|
+
/** The amount to send. */
|
|
258
|
+
amount: string;
|
|
259
|
+
/** The network to send on. */
|
|
260
|
+
network: SendEvmAssetWithEndUserAccountBodyNetwork;
|
|
261
|
+
/** Whether to use the CDP paymaster. */
|
|
262
|
+
useCdpPaymaster?: boolean;
|
|
263
|
+
/** A custom paymaster URL. */
|
|
264
|
+
paymasterUrl?: string;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* The result of sending an EVM asset on behalf of an end user.
|
|
269
|
+
*/
|
|
270
|
+
export type SendEvmAssetResult = SendEvmAssetWithEndUserAccount200;
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* The options for sending a user operation on behalf of an end user.
|
|
274
|
+
*/
|
|
275
|
+
export interface SendUserOperationOptions {
|
|
276
|
+
/** The unique identifier of the end user. */
|
|
277
|
+
userId: string;
|
|
278
|
+
/** The EVM smart account address. */
|
|
279
|
+
address: string;
|
|
280
|
+
/** The network to send the user operation on. */
|
|
281
|
+
network: EvmUserOperationNetwork;
|
|
282
|
+
/** The calls to execute. */
|
|
283
|
+
calls: EvmCall[];
|
|
284
|
+
/** Whether to use the CDP paymaster. */
|
|
285
|
+
useCdpPaymaster: boolean;
|
|
286
|
+
/** A custom paymaster URL. */
|
|
287
|
+
paymasterUrl?: string;
|
|
288
|
+
/** An optional data suffix. */
|
|
289
|
+
dataSuffix?: string;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* The result of sending a user operation on behalf of an end user.
|
|
294
|
+
*/
|
|
295
|
+
export type SendUserOperationResult = SendUserOperationWithEndUserAccountResult;
|
|
296
|
+
|
|
297
|
+
// ─── EVM EIP-7702 Delegation Options/Results ───
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* The options for creating an EVM EIP-7702 delegation on behalf of an end user.
|
|
301
|
+
*/
|
|
302
|
+
export interface CreateEvmEip7702DelegationOptions {
|
|
303
|
+
/** The unique identifier of the end user. */
|
|
304
|
+
userId: string;
|
|
305
|
+
/** The EVM address to delegate. */
|
|
306
|
+
address: string;
|
|
307
|
+
/** The network for the delegation. */
|
|
308
|
+
network: EvmEip7702DelegationNetwork;
|
|
309
|
+
/** Whether to enable spend permissions for the delegation. */
|
|
310
|
+
enableSpendPermissions?: boolean;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* The result of creating an EVM EIP-7702 delegation on behalf of an end user.
|
|
315
|
+
*/
|
|
316
|
+
export type CreateEvmEip7702DelegationForEndUserResult =
|
|
317
|
+
CreateEvmEip7702DelegationWithEndUserAccount201;
|
|
318
|
+
|
|
319
|
+
// ─── Solana Sign Options/Results ───
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* The options for signing a Solana hash on behalf of an end user.
|
|
323
|
+
*/
|
|
324
|
+
export interface SignSolanaHashOptions {
|
|
325
|
+
/** The unique identifier of the end user. */
|
|
326
|
+
userId: string;
|
|
327
|
+
/** The 32-byte hash to sign. */
|
|
328
|
+
hash: string;
|
|
329
|
+
/** The Solana address to sign with. */
|
|
330
|
+
address: string;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* The result of signing a Solana hash on behalf of an end user.
|
|
335
|
+
*/
|
|
336
|
+
export type SignSolanaHashResult = SignSolanaHashWithEndUserAccount200;
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* The options for signing a Solana message on behalf of an end user.
|
|
340
|
+
*/
|
|
341
|
+
export interface SignSolanaMessageOptions {
|
|
342
|
+
/** The unique identifier of the end user. */
|
|
343
|
+
userId: string;
|
|
344
|
+
/** The Solana address to sign with. */
|
|
345
|
+
address: string;
|
|
346
|
+
/** The base64-encoded message to sign. */
|
|
347
|
+
message: string;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
/**
|
|
351
|
+
* The result of signing a Solana message on behalf of an end user.
|
|
352
|
+
*/
|
|
353
|
+
export type SignSolanaMessageResult = SignSolanaMessageWithEndUserAccount200;
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* The options for signing a Solana transaction on behalf of an end user.
|
|
357
|
+
*/
|
|
358
|
+
export interface SignSolanaTransactionOptions {
|
|
359
|
+
/** The unique identifier of the end user. */
|
|
360
|
+
userId: string;
|
|
361
|
+
/** The Solana address to sign with. */
|
|
362
|
+
address: string;
|
|
363
|
+
/** The base64-encoded Solana transaction to sign. */
|
|
364
|
+
transaction: string;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* The result of signing a Solana transaction on behalf of an end user.
|
|
369
|
+
*/
|
|
370
|
+
export type SignSolanaTransactionResult = SignSolanaTransactionWithEndUserAccount200;
|
|
371
|
+
|
|
372
|
+
// ─── Solana Send Options/Results ───
|
|
373
|
+
|
|
374
|
+
/**
|
|
375
|
+
* The options for sending a Solana transaction on behalf of an end user.
|
|
376
|
+
*/
|
|
377
|
+
export interface SendSolanaTransactionOptions {
|
|
378
|
+
/** The unique identifier of the end user. */
|
|
379
|
+
userId: string;
|
|
380
|
+
/** The Solana address to send from. */
|
|
381
|
+
address: string;
|
|
382
|
+
/** The base64-encoded Solana transaction to send. */
|
|
383
|
+
transaction: string;
|
|
384
|
+
/** The Solana network to send on. */
|
|
385
|
+
network: SendSolanaTransactionWithEndUserAccountBodyNetwork;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
/**
|
|
389
|
+
* The result of sending a Solana transaction on behalf of an end user.
|
|
390
|
+
*/
|
|
391
|
+
export type SendSolanaTransactionResult = SendSolanaTransactionWithEndUserAccount200;
|
|
392
|
+
|
|
393
|
+
/**
|
|
394
|
+
* The options for sending a Solana asset on behalf of an end user.
|
|
395
|
+
*/
|
|
396
|
+
export interface SendSolanaAssetOptions {
|
|
397
|
+
/** The unique identifier of the end user. */
|
|
398
|
+
userId: string;
|
|
399
|
+
/** The Solana address to send from. */
|
|
400
|
+
address: string;
|
|
401
|
+
/** The asset to send. Defaults to "usdc". */
|
|
402
|
+
asset?: "usdc";
|
|
403
|
+
/** The recipient address. */
|
|
404
|
+
to: string;
|
|
405
|
+
/** The amount to send. */
|
|
406
|
+
amount: string;
|
|
407
|
+
/** The Solana network to send on. */
|
|
408
|
+
network: SendSolanaAssetWithEndUserAccountBodyNetwork;
|
|
409
|
+
/** Whether to create the recipient's associated token account if it doesn't exist. */
|
|
410
|
+
createRecipientAta?: boolean;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
/**
|
|
414
|
+
* The result of sending a Solana asset on behalf of an end user.
|
|
415
|
+
*/
|
|
416
|
+
export type SendSolanaAssetResult = SendSolanaAssetWithEndUserAccount200;
|
|
417
|
+
|
|
418
|
+
// ─── EndUserAccount Action Method Options (address optional, userId auto-bound) ───
|
|
419
|
+
|
|
420
|
+
/**
|
|
421
|
+
* The options for signing an EVM hash on an EndUser object.
|
|
422
|
+
*/
|
|
423
|
+
export interface AccountSignEvmHashOptions {
|
|
424
|
+
/** The 32-byte hash to sign, hex-encoded. */
|
|
425
|
+
hash: string;
|
|
426
|
+
/** The EVM address to sign with. Uses the first EVM account if not provided. */
|
|
427
|
+
address?: string;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* The options for signing an EVM transaction on an EndUser object.
|
|
432
|
+
*/
|
|
433
|
+
export interface AccountSignEvmTransactionOptions {
|
|
434
|
+
/** The EVM address to sign with. Uses the first EVM account if not provided. */
|
|
435
|
+
address?: string;
|
|
436
|
+
/** The RLP-serialized EIP-1559 transaction to sign, hex-encoded. */
|
|
437
|
+
transaction: string;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
/**
|
|
441
|
+
* The options for signing an EVM message on an EndUser object.
|
|
442
|
+
*/
|
|
443
|
+
export interface AccountSignEvmMessageOptions {
|
|
444
|
+
/** The EVM address to sign with. Uses the first EVM account if not provided. */
|
|
445
|
+
address?: string;
|
|
446
|
+
/** The EIP-191 message to sign. */
|
|
447
|
+
message: string;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
/**
|
|
451
|
+
* The options for signing EVM typed data on an EndUser object.
|
|
452
|
+
*/
|
|
453
|
+
export interface AccountSignEvmTypedDataOptions {
|
|
454
|
+
/** The EVM address to sign with. Uses the first EVM account if not provided. */
|
|
455
|
+
address?: string;
|
|
456
|
+
/** The EIP-712 typed data to sign. */
|
|
457
|
+
typedData: EIP712Message;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* The options for sending an EVM transaction on an EndUser object.
|
|
462
|
+
*/
|
|
463
|
+
export interface AccountSendEvmTransactionOptions {
|
|
464
|
+
/** The EVM address to send from. Uses the first EVM account if not provided. */
|
|
465
|
+
address?: string;
|
|
466
|
+
/** The RLP-serialized EIP-1559 transaction to send, hex-encoded. */
|
|
467
|
+
transaction: string;
|
|
468
|
+
/** The network to send the transaction on. */
|
|
469
|
+
network: SendEvmTransactionWithEndUserAccountBodyNetwork;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
/**
|
|
473
|
+
* The options for sending an EVM asset on an EndUser object.
|
|
474
|
+
*/
|
|
475
|
+
export interface AccountSendEvmAssetOptions {
|
|
476
|
+
/** The EVM address to send from. Uses the first EVM account if not provided. */
|
|
477
|
+
address?: string;
|
|
478
|
+
/** The asset to send. Defaults to "usdc". */
|
|
479
|
+
asset?: "usdc";
|
|
480
|
+
/** The recipient address. */
|
|
481
|
+
to: string;
|
|
482
|
+
/** The amount to send. */
|
|
483
|
+
amount: string;
|
|
484
|
+
/** The network to send on. */
|
|
485
|
+
network: SendEvmAssetWithEndUserAccountBodyNetwork;
|
|
486
|
+
/** Whether to use the CDP paymaster. */
|
|
487
|
+
useCdpPaymaster?: boolean;
|
|
488
|
+
/** A custom paymaster URL. */
|
|
489
|
+
paymasterUrl?: string;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
/**
|
|
493
|
+
* The options for sending a user operation on an EndUser object.
|
|
494
|
+
*/
|
|
495
|
+
export interface AccountSendUserOperationOptions {
|
|
496
|
+
/** The EVM smart account address. Uses the first smart account if not provided. */
|
|
497
|
+
address?: string;
|
|
498
|
+
/** The network to send the user operation on. */
|
|
499
|
+
network: EvmUserOperationNetwork;
|
|
500
|
+
/** The calls to execute. */
|
|
501
|
+
calls: EvmCall[];
|
|
502
|
+
/** Whether to use the CDP paymaster. */
|
|
503
|
+
useCdpPaymaster: boolean;
|
|
504
|
+
/** A custom paymaster URL. */
|
|
505
|
+
paymasterUrl?: string;
|
|
506
|
+
/** An optional data suffix. */
|
|
507
|
+
dataSuffix?: string;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
/**
|
|
511
|
+
* The options for creating an EVM EIP-7702 delegation on an EndUser object.
|
|
512
|
+
*/
|
|
513
|
+
export interface AccountCreateEvmEip7702DelegationOptions {
|
|
514
|
+
/** The EVM address to delegate. Uses the first EVM account if not provided. */
|
|
515
|
+
address?: string;
|
|
516
|
+
/** The network for the delegation. */
|
|
517
|
+
network: EvmEip7702DelegationNetwork;
|
|
518
|
+
/** Whether to enable spend permissions for the delegation. */
|
|
519
|
+
enableSpendPermissions?: boolean;
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
/**
|
|
523
|
+
* The options for signing a Solana hash on an EndUser object.
|
|
524
|
+
*/
|
|
525
|
+
export interface AccountSignSolanaHashOptions {
|
|
526
|
+
/** The 32-byte hash to sign. */
|
|
527
|
+
hash: string;
|
|
528
|
+
/** The Solana address to sign with. Uses the first Solana account if not provided. */
|
|
529
|
+
address?: string;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
/**
|
|
533
|
+
* The options for signing a Solana message on an EndUser object.
|
|
534
|
+
*/
|
|
535
|
+
export interface AccountSignSolanaMessageOptions {
|
|
536
|
+
/** The Solana address to sign with. Uses the first Solana account if not provided. */
|
|
537
|
+
address?: string;
|
|
538
|
+
/** The base64-encoded message to sign. */
|
|
539
|
+
message: string;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
/**
|
|
543
|
+
* The options for signing a Solana transaction on an EndUser object.
|
|
544
|
+
*/
|
|
545
|
+
export interface AccountSignSolanaTransactionOptions {
|
|
546
|
+
/** The Solana address to sign with. Uses the first Solana account if not provided. */
|
|
547
|
+
address?: string;
|
|
548
|
+
/** The base64-encoded Solana transaction to sign. */
|
|
549
|
+
transaction: string;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
/**
|
|
553
|
+
* The options for sending a Solana transaction on an EndUser object.
|
|
554
|
+
*/
|
|
555
|
+
export interface AccountSendSolanaTransactionOptions {
|
|
556
|
+
/** The Solana address to send from. Uses the first Solana account if not provided. */
|
|
557
|
+
address?: string;
|
|
558
|
+
/** The base64-encoded Solana transaction to send. */
|
|
559
|
+
transaction: string;
|
|
560
|
+
/** The Solana network to send on. */
|
|
561
|
+
network: SendSolanaTransactionWithEndUserAccountBodyNetwork;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
/**
|
|
565
|
+
* The options for sending a Solana asset on an EndUser object.
|
|
566
|
+
*/
|
|
567
|
+
export interface AccountSendSolanaAssetOptions {
|
|
568
|
+
/** The Solana address to send from. Uses the first Solana account if not provided. */
|
|
569
|
+
address?: string;
|
|
570
|
+
/** The asset to send. Defaults to "usdc". */
|
|
571
|
+
asset?: "usdc";
|
|
572
|
+
/** The recipient address. */
|
|
573
|
+
to: string;
|
|
574
|
+
/** The amount to send. */
|
|
575
|
+
amount: string;
|
|
576
|
+
/** The Solana network to send on. */
|
|
577
|
+
network: SendSolanaAssetWithEndUserAccountBodyNetwork;
|
|
578
|
+
/** Whether to create the recipient's associated token account if it doesn't exist. */
|
|
579
|
+
createRecipientAta?: boolean;
|
|
580
|
+
}
|
|
581
|
+
|
|
123
582
|
/**
|
|
124
583
|
* The options for adding an EVM smart account to an EndUser object.
|
|
125
584
|
*/
|
|
@@ -191,6 +650,145 @@ export type EndUserAccountActions = {
|
|
|
191
650
|
* ```
|
|
192
651
|
*/
|
|
193
652
|
addSolanaAccount: () => Promise<AddEndUserSolanaAccountResult>;
|
|
653
|
+
|
|
654
|
+
/**
|
|
655
|
+
* Revokes all active delegations for this end user.
|
|
656
|
+
* This operation can be performed by the end user themselves or by a developer using their API key.
|
|
657
|
+
*
|
|
658
|
+
* @returns A promise that resolves when the delegation has been revoked.
|
|
659
|
+
*
|
|
660
|
+
* @example
|
|
661
|
+
* ```ts
|
|
662
|
+
* const endUser = await cdp.endUser.getEndUser({ userId: "user-123" });
|
|
663
|
+
*
|
|
664
|
+
* await endUser.revokeDelegation();
|
|
665
|
+
* ```
|
|
666
|
+
*/
|
|
667
|
+
revokeDelegation: () => Promise<void>;
|
|
668
|
+
|
|
669
|
+
// ─── Delegated EVM Sign Methods ───
|
|
670
|
+
|
|
671
|
+
/**
|
|
672
|
+
* Signs an EVM hash on behalf of this end user using a delegation.
|
|
673
|
+
*
|
|
674
|
+
* @param options - The signing options.
|
|
675
|
+
* @returns A promise that resolves to the signature.
|
|
676
|
+
*/
|
|
677
|
+
signEvmHash: (options: AccountSignEvmHashOptions) => Promise<SignEvmHashResult>;
|
|
678
|
+
|
|
679
|
+
/**
|
|
680
|
+
* Signs an EVM transaction on behalf of this end user using a delegation.
|
|
681
|
+
*
|
|
682
|
+
* @param options - The signing options.
|
|
683
|
+
* @returns A promise that resolves to the signed transaction.
|
|
684
|
+
*/
|
|
685
|
+
signEvmTransaction: (
|
|
686
|
+
options: AccountSignEvmTransactionOptions,
|
|
687
|
+
) => Promise<SignEvmTransactionResult>;
|
|
688
|
+
|
|
689
|
+
/**
|
|
690
|
+
* Signs an EVM message on behalf of this end user using a delegation.
|
|
691
|
+
*
|
|
692
|
+
* @param options - The signing options.
|
|
693
|
+
* @returns A promise that resolves to the signature.
|
|
694
|
+
*/
|
|
695
|
+
signEvmMessage: (options: AccountSignEvmMessageOptions) => Promise<SignEvmMessageResult>;
|
|
696
|
+
|
|
697
|
+
/**
|
|
698
|
+
* Signs EVM EIP-712 typed data on behalf of this end user using a delegation.
|
|
699
|
+
*
|
|
700
|
+
* @param options - The signing options.
|
|
701
|
+
* @returns A promise that resolves to the signature.
|
|
702
|
+
*/
|
|
703
|
+
signEvmTypedData: (options: AccountSignEvmTypedDataOptions) => Promise<SignEvmTypedDataResult>;
|
|
704
|
+
|
|
705
|
+
// ─── Delegated EVM Send Methods ───
|
|
706
|
+
|
|
707
|
+
/**
|
|
708
|
+
* Sends an EVM transaction on behalf of this end user using a delegation.
|
|
709
|
+
*
|
|
710
|
+
* @param options - The send options.
|
|
711
|
+
* @returns A promise that resolves to the transaction hash.
|
|
712
|
+
*/
|
|
713
|
+
sendEvmTransaction: (
|
|
714
|
+
options: AccountSendEvmTransactionOptions,
|
|
715
|
+
) => Promise<SendEvmTransactionResult>;
|
|
716
|
+
|
|
717
|
+
/**
|
|
718
|
+
* Sends an EVM asset on behalf of this end user using a delegation.
|
|
719
|
+
*
|
|
720
|
+
* @param options - The send options.
|
|
721
|
+
* @returns A promise that resolves to the transaction result.
|
|
722
|
+
*/
|
|
723
|
+
sendEvmAsset: (options: AccountSendEvmAssetOptions) => Promise<SendEvmAssetResult>;
|
|
724
|
+
|
|
725
|
+
/**
|
|
726
|
+
* Sends a user operation on behalf of this end user using a delegation.
|
|
727
|
+
*
|
|
728
|
+
* @param options - The send options.
|
|
729
|
+
* @returns A promise that resolves to the user operation result.
|
|
730
|
+
*/
|
|
731
|
+
sendUserOperation: (options: AccountSendUserOperationOptions) => Promise<SendUserOperationResult>;
|
|
732
|
+
|
|
733
|
+
// ─── Delegated EVM EIP-7702 Delegation Method ───
|
|
734
|
+
|
|
735
|
+
/**
|
|
736
|
+
* Creates an EVM EIP-7702 delegation on behalf of this end user.
|
|
737
|
+
*
|
|
738
|
+
* @param options - The delegation options.
|
|
739
|
+
* @returns A promise that resolves to the delegation operation ID.
|
|
740
|
+
*/
|
|
741
|
+
createEvmEip7702Delegation: (
|
|
742
|
+
options: AccountCreateEvmEip7702DelegationOptions,
|
|
743
|
+
) => Promise<CreateEvmEip7702DelegationForEndUserResult>;
|
|
744
|
+
|
|
745
|
+
// ─── Delegated Solana Sign Methods ───
|
|
746
|
+
|
|
747
|
+
/**
|
|
748
|
+
* Signs a Solana hash on behalf of this end user using a delegation.
|
|
749
|
+
*
|
|
750
|
+
* @param options - The signing options.
|
|
751
|
+
* @returns A promise that resolves to the signature.
|
|
752
|
+
*/
|
|
753
|
+
signSolanaHash: (options: AccountSignSolanaHashOptions) => Promise<SignSolanaHashResult>;
|
|
754
|
+
|
|
755
|
+
/**
|
|
756
|
+
* Signs a Solana message on behalf of this end user using a delegation.
|
|
757
|
+
*
|
|
758
|
+
* @param options - The signing options.
|
|
759
|
+
* @returns A promise that resolves to the signature.
|
|
760
|
+
*/
|
|
761
|
+
signSolanaMessage: (options: AccountSignSolanaMessageOptions) => Promise<SignSolanaMessageResult>;
|
|
762
|
+
|
|
763
|
+
/**
|
|
764
|
+
* Signs a Solana transaction on behalf of this end user using a delegation.
|
|
765
|
+
*
|
|
766
|
+
* @param options - The signing options.
|
|
767
|
+
* @returns A promise that resolves to the signed transaction.
|
|
768
|
+
*/
|
|
769
|
+
signSolanaTransaction: (
|
|
770
|
+
options: AccountSignSolanaTransactionOptions,
|
|
771
|
+
) => Promise<SignSolanaTransactionResult>;
|
|
772
|
+
|
|
773
|
+
// ─── Delegated Solana Send Methods ───
|
|
774
|
+
|
|
775
|
+
/**
|
|
776
|
+
* Sends a Solana transaction on behalf of this end user using a delegation.
|
|
777
|
+
*
|
|
778
|
+
* @param options - The send options.
|
|
779
|
+
* @returns A promise that resolves to the transaction signature.
|
|
780
|
+
*/
|
|
781
|
+
sendSolanaTransaction: (
|
|
782
|
+
options: AccountSendSolanaTransactionOptions,
|
|
783
|
+
) => Promise<SendSolanaTransactionResult>;
|
|
784
|
+
|
|
785
|
+
/**
|
|
786
|
+
* Sends a Solana asset on behalf of this end user using a delegation.
|
|
787
|
+
*
|
|
788
|
+
* @param options - The send options.
|
|
789
|
+
* @returns A promise that resolves to the transaction signature.
|
|
790
|
+
*/
|
|
791
|
+
sendSolanaAsset: (options: AccountSendSolanaAssetOptions) => Promise<SendSolanaAssetResult>;
|
|
194
792
|
};
|
|
195
793
|
|
|
196
794
|
/**
|