com.coinbase.cdp.resources.enduseraccounts
Constructor Details
EndUserAccountsClient
clientOptions - ClientOptions
Method Details
withRawResponse
signEvmTransactionWithEndUserAccount
Overload 1
userId - String
request - SignEvmTransactionWithEndUserAccountRequest
Returns:
SignEvmTransactionWithEndUserAccountResponse
Overload 2
userId - String
request - SignEvmTransactionWithEndUserAccountRequest
requestOptions - RequestOptions
Returns:
SignEvmTransactionWithEndUserAccountResponse
sendEvmTransactionWithEndUserAccount
Overload 1
to (Required): The address of the contract or account to send the transaction to.
chainId (Ignored): The value of the chainId field in the transaction is ignored. The transaction will be sent to the network indicated by the network field in the request body.
nonce (Optional): The nonce to use for the transaction. If not provided, the API will assign a nonce to the transaction based on the current state of the account.
maxPriorityFeePerGas (Optional): The maximum priority fee per gas to use for the transaction. If not provided, the API will estimate a value based on current network conditions.
maxFeePerGas (Optional): The maximum fee per gas to use for the transaction. If not provided, the API will estimate a value based on current network conditions.
gasLimit (Optional): The gas limit to use for the transaction. If not provided, the API will estimate a value based on the to and data fields of the transaction.
value (Optional): The amount of ETH, in wei, to send with the transaction.
data (Optional): The data to send with the transaction; only used for contract calls.
accessList (Optional): The access list to use for the transaction.
Parameters:
userId - String
request - SendEvmTransactionWithEndUserAccountRequest
Returns:
SendEvmTransactionWithEndUserAccountResponse
Overload 2
to (Required): The address of the contract or account to send the transaction to.
chainId (Ignored): The value of the chainId field in the transaction is ignored. The transaction will be sent to the network indicated by the network field in the request body.
nonce (Optional): The nonce to use for the transaction. If not provided, the API will assign a nonce to the transaction based on the current state of the account.
maxPriorityFeePerGas (Optional): The maximum priority fee per gas to use for the transaction. If not provided, the API will estimate a value based on current network conditions.
maxFeePerGas (Optional): The maximum fee per gas to use for the transaction. If not provided, the API will estimate a value based on current network conditions.
gasLimit (Optional): The gas limit to use for the transaction. If not provided, the API will estimate a value based on the to and data fields of the transaction.
value (Optional): The amount of ETH, in wei, to send with the transaction.
data (Optional): The data to send with the transaction; only used for contract calls.
accessList (Optional): The access list to use for the transaction.
Parameters:
userId - String
request - SendEvmTransactionWithEndUserAccountRequest
requestOptions - RequestOptions
Returns:
SendEvmTransactionWithEndUserAccountResponse
sendEvmAssetWithEndUserAccount
Overload 1
amount field accepts human-readable amounts as decimal strings (e.g., “1.5”, “25.50”).
Parameters:
userId - String
address - BlockchainAddress
asset - SendEvmAssetWithEndUserAccountRequestAsset
request - SendEvmAssetWithEndUserAccountRequest
Returns:
SendEvmAssetWithEndUserAccountResponse
Overload 2
amount field accepts human-readable amounts as decimal strings (e.g., “1.5”, “25.50”).
Parameters:
userId - String
address - BlockchainAddress
asset - SendEvmAssetWithEndUserAccountRequestAsset
request - SendEvmAssetWithEndUserAccountRequest
requestOptions - RequestOptions
Returns:
SendEvmAssetWithEndUserAccountResponse
signEvmMessageWithEndUserAccount
Overload 1
0x19 <0x45 (E)> <thereum Signed Message:\n" + len(message)> before being signed.
Parameters:
userId - String
request - SignEvmMessageWithEndUserAccountRequest
Returns:
SignEvmMessageWithEndUserAccountResponse
Overload 2
0x19 <0x45 (E)> <thereum Signed Message:\n" + len(message)> before being signed.
Parameters:
userId - String
request - SignEvmMessageWithEndUserAccountRequest
requestOptions - RequestOptions
Returns:
SignEvmMessageWithEndUserAccountResponse
signEvmTypedDataWithEndUserAccount
Overload 1
userId - String
request - SignEvmTypedDataWithEndUserAccountRequest
Returns:
SignEvmTypedDataWithEndUserAccountResponse
Overload 2
userId - String
request - SignEvmTypedDataWithEndUserAccountRequest
requestOptions - RequestOptions
Returns:
SignEvmTypedDataWithEndUserAccountResponse
getDelegationForEndUser
Overload 1
userId - String
Returns:
GetDelegationForEndUserResponse
Overload 2
userId - String
request - GetDelegationForEndUserRequest
Returns:
GetDelegationForEndUserResponse
Overload 3
userId - String
requestOptions - RequestOptions
Returns:
GetDelegationForEndUserResponse
Overload 4
userId - String
request - GetDelegationForEndUserRequest
requestOptions - RequestOptions
Returns:
GetDelegationForEndUserResponse
revokeDelegationForEndUser
Overload 1
userId - String
Returns:
void
Overload 2
userId - String
requestOptions - RequestOptions
Returns:
void
Overload 3
userId - String
request - RevokeDelegationForEndUserRequest
Returns:
void
Overload 4
userId - String
request - RevokeDelegationForEndUserRequest
requestOptions - RequestOptions
Returns:
void
getDelegationForEndUserAccount
Overload 1
userId - String
address - BlockchainAddress
Returns:
GetDelegationForEndUserAccountResponse
Overload 2
userId - String
address - BlockchainAddress
request - GetDelegationForEndUserAccountRequest
Returns:
GetDelegationForEndUserAccountResponse
Overload 3
userId - String
address - BlockchainAddress
requestOptions - RequestOptions
Returns:
GetDelegationForEndUserAccountResponse
Overload 4
userId - String
address - BlockchainAddress
request - GetDelegationForEndUserAccountRequest
requestOptions - RequestOptions
Returns:
GetDelegationForEndUserAccountResponse
revokeDelegationForEndUserAccount
Overload 1
userId - String
address - BlockchainAddress
Returns:
void
Overload 2
userId - String
address - BlockchainAddress
requestOptions - RequestOptions
Returns:
void
Overload 3
userId - String
address - BlockchainAddress
request - RevokeDelegationForEndUserAccountRequest
Returns:
void
Overload 4
userId - String
address - BlockchainAddress
request - RevokeDelegationForEndUserAccountRequest
requestOptions - RequestOptions
Returns:
void
createEvmEip7702DelegationWithEndUserAccount
Overload 1
userId - String
request - CreateEvmEip7702DelegationWithEndUserAccountRequest
Returns:
CreateEvmEip7702DelegationWithEndUserAccountResponse
Overload 2
userId - String
request - CreateEvmEip7702DelegationWithEndUserAccountRequest
requestOptions - RequestOptions
Returns:
CreateEvmEip7702DelegationWithEndUserAccountResponse
sendUserOperationWithEndUserAccount
Overload 1
userId - String
address - String
request - SendUserOperationWithEndUserAccountRequest
Returns:
EvmUserOperation
Overload 2
userId - String
address - String
request - SendUserOperationWithEndUserAccountRequest
requestOptions - RequestOptions
Returns:
EvmUserOperation
signSolanaMessageWithEndUserAccount
Overload 1
userId - String
request - SignSolanaMessageWithEndUserAccountRequest
Returns:
SignSolanaMessageWithEndUserAccountResponse
Overload 2
userId - String
request - SignSolanaMessageWithEndUserAccountRequest
requestOptions - RequestOptions
Returns:
SignSolanaMessageWithEndUserAccountResponse
signSolanaTransactionWithEndUserAccount
Overload 1
userId - String
request - SignSolanaTransactionWithEndUserAccountRequest
Returns:
SignSolanaTransactionWithEndUserAccountResponse
Overload 2
userId - String
request - SignSolanaTransactionWithEndUserAccountRequest
requestOptions - RequestOptions
Returns:
SignSolanaTransactionWithEndUserAccountResponse
signSolanaX402PaymentWithEndUserAccount
Overload 1
paymentRequired envelope’s x402Version, resource, and extensions are carried through into the signed payment payload; only the selected accept entry becomes paymentPayload.accepted. Returns a signed payment payload that can be base64-encoded and sent in the PAYMENT-SIGNATURE header of the resource request. If acceptsIndex is out of range for paymentRequired.accepts, or the selected accept is not a Solana network payment option, the request fails with 422.
Parameters:
userId - String
request - SignSolanaX402PaymentWithEndUserAccountRequest
Returns:
SignSolanaX402PaymentWithEndUserAccountResponse
Overload 2
paymentRequired envelope’s x402Version, resource, and extensions are carried through into the signed payment payload; only the selected accept entry becomes paymentPayload.accepted. Returns a signed payment payload that can be base64-encoded and sent in the PAYMENT-SIGNATURE header of the resource request. If acceptsIndex is out of range for paymentRequired.accepts, or the selected accept is not a Solana network payment option, the request fails with 422.
Parameters:
userId - String
request - SignSolanaX402PaymentWithEndUserAccountRequest
requestOptions - RequestOptions
Returns:
SignSolanaX402PaymentWithEndUserAccountResponse
sendSolanaTransactionWithEndUserAccount
Overload 1
solana - Solana Mainnet solana-devnet - Solana Devnet The developer is responsible for ensuring that the unsigned transaction is valid, as the API will not validate the transaction.
Parameters:
userId - String
request - SendSolanaTransactionWithEndUserAccountRequest
Returns:
SendSolanaTransactionWithEndUserAccountResponse
Overload 2
solana - Solana Mainnet solana-devnet - Solana Devnet The developer is responsible for ensuring that the unsigned transaction is valid, as the API will not validate the transaction.
Parameters:
userId - String
request - SendSolanaTransactionWithEndUserAccountRequest
requestOptions - RequestOptions
Returns:
SendSolanaTransactionWithEndUserAccountResponse
sendSolanaAssetWithEndUserAccount
Overload 1
amount field accepts human-readable amounts as decimal strings (e.g., “1.5”, “25.50”). Use the optional createRecipientAta parameter to control whether the sender pays for creating the recipient’s Associated Token Account if it doesn’t exist.
Parameters:
userId - String
address - BlockchainAddress
asset - SendSolanaAssetWithEndUserAccountRequestAsset
request - SendSolanaAssetWithEndUserAccountRequest
Returns:
SendSolanaAssetWithEndUserAccountResponse
Overload 2
amount field accepts human-readable amounts as decimal strings (e.g., “1.5”, “25.50”). Use the optional createRecipientAta parameter to control whether the sender pays for creating the recipient’s Associated Token Account if it doesn’t exist.
Parameters:
userId - String
address - BlockchainAddress
asset - SendSolanaAssetWithEndUserAccountRequestAsset
request - SendSolanaAssetWithEndUserAccountRequest
requestOptions - RequestOptions
Returns:
SendSolanaAssetWithEndUserAccountResponse