com.coinbase.cdp.resources.enduseraccounts
Method Details
signEvmTransactionWithEndUserAccount
Overload 1
userId - String
request - SignEvmTransactionWithEndUserAccountRequest
Returns:
CdpClientHttpResponse<SignEvmTransactionWithEndUserAccountResponse>
Overload 2
userId - String
request - SignEvmTransactionWithEndUserAccountRequest
requestOptions - RequestOptions
Returns:
CdpClientHttpResponse<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:
CdpClientHttpResponse<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:
CdpClientHttpResponse<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:
CdpClientHttpResponse<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:
CdpClientHttpResponse<SendEvmAssetWithEndUserAccountResponse>
signEvmMessageWithEndUserAccount
Overload 1
0x19 <0x45 (E)> <thereum Signed Message:\n" + len(message)> before being signed.
Parameters:
userId - String
request - SignEvmMessageWithEndUserAccountRequest
Returns:
CdpClientHttpResponse<SignEvmMessageWithEndUserAccountResponse>
Overload 2
0x19 <0x45 (E)> <thereum Signed Message:\n" + len(message)> before being signed.
Parameters:
userId - String
request - SignEvmMessageWithEndUserAccountRequest
requestOptions - RequestOptions
Returns:
CdpClientHttpResponse<SignEvmMessageWithEndUserAccountResponse>
signEvmTypedDataWithEndUserAccount
Overload 1
userId - String
request - SignEvmTypedDataWithEndUserAccountRequest
Returns:
CdpClientHttpResponse<SignEvmTypedDataWithEndUserAccountResponse>
Overload 2
userId - String
request - SignEvmTypedDataWithEndUserAccountRequest
requestOptions - RequestOptions
Returns:
CdpClientHttpResponse<SignEvmTypedDataWithEndUserAccountResponse>
getDelegationForEndUser
Overload 1
userId - String
Returns:
CdpClientHttpResponse<GetDelegationForEndUserResponse>
Overload 2
userId - String
request - GetDelegationForEndUserRequest
Returns:
CdpClientHttpResponse<GetDelegationForEndUserResponse>
Overload 3
userId - String
requestOptions - RequestOptions
Returns:
CdpClientHttpResponse<GetDelegationForEndUserResponse>
Overload 4
userId - String
request - GetDelegationForEndUserRequest
requestOptions - RequestOptions
Returns:
CdpClientHttpResponse<GetDelegationForEndUserResponse>
revokeDelegationForEndUser
Overload 1
userId - String
Returns:
CdpClientHttpResponse<Void>
Overload 2
userId - String
requestOptions - RequestOptions
Returns:
CdpClientHttpResponse<Void>
Overload 3
userId - String
request - RevokeDelegationForEndUserRequest
Returns:
CdpClientHttpResponse<Void>
Overload 4
userId - String
request - RevokeDelegationForEndUserRequest
requestOptions - RequestOptions
Returns:
CdpClientHttpResponse<Void>
getDelegationForEndUserAccount
Overload 1
userId - String
address - BlockchainAddress
Returns:
CdpClientHttpResponse<GetDelegationForEndUserAccountResponse>
Overload 2
userId - String
address - BlockchainAddress
request - GetDelegationForEndUserAccountRequest
Returns:
CdpClientHttpResponse<GetDelegationForEndUserAccountResponse>
Overload 3
userId - String
address - BlockchainAddress
requestOptions - RequestOptions
Returns:
CdpClientHttpResponse<GetDelegationForEndUserAccountResponse>
Overload 4
userId - String
address - BlockchainAddress
request - GetDelegationForEndUserAccountRequest
requestOptions - RequestOptions
Returns:
CdpClientHttpResponse<GetDelegationForEndUserAccountResponse>
revokeDelegationForEndUserAccount
Overload 1
userId - String
address - BlockchainAddress
Returns:
CdpClientHttpResponse<Void>
Overload 2
userId - String
address - BlockchainAddress
requestOptions - RequestOptions
Returns:
CdpClientHttpResponse<Void>
Overload 3
userId - String
address - BlockchainAddress
request - RevokeDelegationForEndUserAccountRequest
Returns:
CdpClientHttpResponse<Void>
Overload 4
userId - String
address - BlockchainAddress
request - RevokeDelegationForEndUserAccountRequest
requestOptions - RequestOptions
Returns:
CdpClientHttpResponse<Void>
createEvmEip7702DelegationWithEndUserAccount
Overload 1
userId - String
request - CreateEvmEip7702DelegationWithEndUserAccountRequest
Returns:
CdpClientHttpResponse<CreateEvmEip7702DelegationWithEndUserAccountResponse>
Overload 2
userId - String
request - CreateEvmEip7702DelegationWithEndUserAccountRequest
requestOptions - RequestOptions
Returns:
CdpClientHttpResponse<CreateEvmEip7702DelegationWithEndUserAccountResponse>
sendUserOperationWithEndUserAccount
Overload 1
userId - String
address - String
request - SendUserOperationWithEndUserAccountRequest
Returns:
CdpClientHttpResponse<EvmUserOperation>
Overload 2
userId - String
address - String
request - SendUserOperationWithEndUserAccountRequest
requestOptions - RequestOptions
Returns:
CdpClientHttpResponse<EvmUserOperation>
signSolanaMessageWithEndUserAccount
Overload 1
userId - String
request - SignSolanaMessageWithEndUserAccountRequest
Returns:
CdpClientHttpResponse<SignSolanaMessageWithEndUserAccountResponse>
Overload 2
userId - String
request - SignSolanaMessageWithEndUserAccountRequest
requestOptions - RequestOptions
Returns:
CdpClientHttpResponse<SignSolanaMessageWithEndUserAccountResponse>
signSolanaTransactionWithEndUserAccount
Overload 1
userId - String
request - SignSolanaTransactionWithEndUserAccountRequest
Returns:
CdpClientHttpResponse<SignSolanaTransactionWithEndUserAccountResponse>
Overload 2
userId - String
request - SignSolanaTransactionWithEndUserAccountRequest
requestOptions - RequestOptions
Returns:
CdpClientHttpResponse<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:
CdpClientHttpResponse<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:
CdpClientHttpResponse<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:
CdpClientHttpResponse<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:
CdpClientHttpResponse<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:
CdpClientHttpResponse<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:
CdpClientHttpResponse<SendSolanaAssetWithEndUserAccountResponse>