Skip to main content
Package: com.coinbase.cdp.resources.evmaccounts

Method Details

listEvmAccounts

Overload 1
Lists the EVM accounts belonging to the developer’s CDP Project. The response is paginated, and by default, returns 20 accounts per page. Returns: CompletableFuture<CdpClientHttpResponse<ListEvmAccountsResponse>> Overload 2
Lists the EVM accounts belonging to the developer’s CDP Project. The response is paginated, and by default, returns 20 accounts per page. Parameters: request - ListEvmAccountsRequest Returns: CompletableFuture<CdpClientHttpResponse<ListEvmAccountsResponse>> Overload 3
Lists the EVM accounts belonging to the developer’s CDP Project. The response is paginated, and by default, returns 20 accounts per page. Parameters: requestOptions - RequestOptions Returns: CompletableFuture<CdpClientHttpResponse<ListEvmAccountsResponse>> Overload 4
Lists the EVM accounts belonging to the developer’s CDP Project. The response is paginated, and by default, returns 20 accounts per page. Parameters: request - ListEvmAccountsRequest requestOptions - RequestOptions Returns: CompletableFuture<CdpClientHttpResponse<ListEvmAccountsResponse>>

createEvmAccount

Overload 1
Creates a new EVM account. Returns: CompletableFuture<CdpClientHttpResponse<EvmAccount>> Overload 2
Creates a new EVM account. Parameters: request - CreateEvmAccountRequest Returns: CompletableFuture<CdpClientHttpResponse<EvmAccount>> Overload 3
Creates a new EVM account. Parameters: requestOptions - RequestOptions Returns: CompletableFuture<CdpClientHttpResponse<EvmAccount>> Overload 4
Creates a new EVM account. Parameters: request - CreateEvmAccountRequest requestOptions - RequestOptions Returns: CompletableFuture<CdpClientHttpResponse<EvmAccount>>

getEvmAccount

Overload 1
Gets an EVM account by its address. Parameters: address - String Returns: CompletableFuture<CdpClientHttpResponse<EvmAccount>> Overload 2
Gets an EVM account by its address. Parameters: address - String request - GetEvmAccountRequest Returns: CompletableFuture<CdpClientHttpResponse<EvmAccount>> Overload 3
Gets an EVM account by its address. Parameters: address - String requestOptions - RequestOptions Returns: CompletableFuture<CdpClientHttpResponse<EvmAccount>> Overload 4
Gets an EVM account by its address. Parameters: address - String request - GetEvmAccountRequest requestOptions - RequestOptions Returns: CompletableFuture<CdpClientHttpResponse<EvmAccount>>

updateEvmAccount

Overload 1
Updates an existing EVM account. Use this to update the account’s name or account-level policy. Parameters: address - String Returns: CompletableFuture<CdpClientHttpResponse<EvmAccount>> Overload 2
Updates an existing EVM account. Use this to update the account’s name or account-level policy. Parameters: address - String requestOptions - RequestOptions Returns: CompletableFuture<CdpClientHttpResponse<EvmAccount>> Overload 3
Updates an existing EVM account. Use this to update the account’s name or account-level policy. Parameters: address - String request - UpdateEvmAccountRequest Returns: CompletableFuture<CdpClientHttpResponse<EvmAccount>> Overload 4
Updates an existing EVM account. Use this to update the account’s name or account-level policy. Parameters: address - String request - UpdateEvmAccountRequest requestOptions - RequestOptions Returns: CompletableFuture<CdpClientHttpResponse<EvmAccount>>

getEvmAccountByName

Overload 1
Gets an EVM account by its name. Parameters: name - String Returns: CompletableFuture<CdpClientHttpResponse<EvmAccount>> Overload 2
Gets an EVM account by its name. Parameters: name - String request - GetEvmAccountByNameRequest Returns: CompletableFuture<CdpClientHttpResponse<EvmAccount>> Overload 3
Gets an EVM account by its name. Parameters: name - String requestOptions - RequestOptions Returns: CompletableFuture<CdpClientHttpResponse<EvmAccount>> Overload 4
Gets an EVM account by its name. Parameters: name - String request - GetEvmAccountByNameRequest requestOptions - RequestOptions Returns: CompletableFuture<CdpClientHttpResponse<EvmAccount>>

sendEvmTransaction

Overload 1
Signs a transaction with the given 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. The transaction must be an EIP-1559 dynamic fee transaction. Transaction fields and API behavior 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: address - String request - SendEvmTransactionRequest Returns: CompletableFuture<CdpClientHttpResponse<SendEvmTransactionResponse>> Overload 2
Signs a transaction with the given 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. The transaction must be an EIP-1559 dynamic fee transaction. Transaction fields and API behavior 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: address - String request - SendEvmTransactionRequest requestOptions - RequestOptions Returns: CompletableFuture<CdpClientHttpResponse<SendEvmTransactionResponse>>

signEvmTransaction

Overload 1
Signs a transaction with the given EVM account. The transaction should be serialized as a hex string using RLP. The transaction must be an EIP-1559 dynamic fee transaction. The developer is responsible for ensuring that the unsigned transaction is valid, as the API will not validate the transaction. Parameters: address - String request - SignEvmTransactionRequest Returns: CompletableFuture<CdpClientHttpResponse<SignEvmTransactionResponse>> Overload 2
Signs a transaction with the given EVM account. The transaction should be serialized as a hex string using RLP. The transaction must be an EIP-1559 dynamic fee transaction. The developer is responsible for ensuring that the unsigned transaction is valid, as the API will not validate the transaction. Parameters: address - String request - SignEvmTransactionRequest requestOptions - RequestOptions Returns: CompletableFuture<CdpClientHttpResponse<SignEvmTransactionResponse>>

signEvmHash

Overload 1
Signs an arbitrary 32 byte hash with the given EVM account. Parameters: address - String request - SignEvmHashRequest Returns: CompletableFuture<CdpClientHttpResponse<SignEvmHashResponse>> Overload 2
Signs an arbitrary 32 byte hash with the given EVM account. Parameters: address - String request - SignEvmHashRequest requestOptions - RequestOptions Returns: CompletableFuture<CdpClientHttpResponse<SignEvmHashResponse>>

signEvmMessage

Overload 1
Signs an EIP-191 message with the given EVM account. Per the specification, the message in the request body is prepended with 0x19 <0x45 (E)> <thereum Signed Message:\n" + len(message)> before being signed. Parameters: address - String request - SignEvmMessageRequest Returns: CompletableFuture<CdpClientHttpResponse<SignEvmMessageResponse>> Overload 2
Signs an EIP-191 message with the given EVM account. Per the specification, the message in the request body is prepended with 0x19 <0x45 (E)> <thereum Signed Message:\n" + len(message)> before being signed. Parameters: address - String request - SignEvmMessageRequest requestOptions - RequestOptions Returns: CompletableFuture<CdpClientHttpResponse<SignEvmMessageResponse>>

signEvmTypedData

Overload 1
Signs EIP-712 typed data with the given EVM account. Parameters: address - String body - Eip712Message Returns: CompletableFuture<CdpClientHttpResponse<SignEvmTypedDataResponse>> Overload 2
Signs EIP-712 typed data with the given EVM account. Parameters: address - String request - SignEvmTypedDataRequest Returns: CompletableFuture<CdpClientHttpResponse<SignEvmTypedDataResponse>> Overload 3
Signs EIP-712 typed data with the given EVM account. Parameters: address - String body - Eip712Message requestOptions - RequestOptions Returns: CompletableFuture<CdpClientHttpResponse<SignEvmTypedDataResponse>> Overload 4
Signs EIP-712 typed data with the given EVM account. Parameters: address - String request - SignEvmTypedDataRequest requestOptions - RequestOptions Returns: CompletableFuture<CdpClientHttpResponse<SignEvmTypedDataResponse>>

createEvmEip7702Delegation

Overload 1
Creates an EIP-7702 delegation for an EVM EOA account, upgrading it with smart account capabilities. This endpoint: Retrieves delegation artifacts from onchain Signs the EIP-7702 authorization for delegation Assembles and submits a Type 4 transaction Creates an associated smart account object The delegation allows the EVM EOA to be used as a smart account, which enables batched transactions and gas sponsorship via paymaster. Parameters: address - String request - CreateEvmEip7702DelegationRequest Returns: CompletableFuture<CdpClientHttpResponse<CreateEvmEip7702DelegationResponse>> Overload 2
Creates an EIP-7702 delegation for an EVM EOA account, upgrading it with smart account capabilities. This endpoint: Retrieves delegation artifacts from onchain Signs the EIP-7702 authorization for delegation Assembles and submits a Type 4 transaction Creates an associated smart account object The delegation allows the EVM EOA to be used as a smart account, which enables batched transactions and gas sponsorship via paymaster. Parameters: address - String request - CreateEvmEip7702DelegationRequest requestOptions - RequestOptions Returns: CompletableFuture<CdpClientHttpResponse<CreateEvmEip7702DelegationResponse>>

getEvmEip7702DelegationOperationById

Overload 1
Returns the EIP-7702 delegation operation. Use the delegationOperationId returned by the Create EIP-7702 delegation endpoint to poll for operation completion. Parameters: delegationOperationId - String Returns: CompletableFuture<CdpClientHttpResponse<EvmEip7702DelegationOperation>> Overload 2
Returns the EIP-7702 delegation operation. Use the delegationOperationId returned by the Create EIP-7702 delegation endpoint to poll for operation completion. Parameters: delegationOperationId - String request - GetEvmEip7702DelegationOperationByIdRequest Returns: CompletableFuture<CdpClientHttpResponse<EvmEip7702DelegationOperation>> Overload 3
Returns the EIP-7702 delegation operation. Use the delegationOperationId returned by the Create EIP-7702 delegation endpoint to poll for operation completion. Parameters: delegationOperationId - String requestOptions - RequestOptions Returns: CompletableFuture<CdpClientHttpResponse<EvmEip7702DelegationOperation>> Overload 4
Returns the EIP-7702 delegation operation. Use the delegationOperationId returned by the Create EIP-7702 delegation endpoint to poll for operation completion. Parameters: delegationOperationId - String request - GetEvmEip7702DelegationOperationByIdRequest requestOptions - RequestOptions Returns: CompletableFuture<CdpClientHttpResponse<EvmEip7702DelegationOperation>>

importEvmAccount

Overload 1
Import an existing EVM account into the developer’s CDP Project. This API should be called from the CDP SDK to ensure that the associated private key is properly encrypted. Parameters: request - ImportEvmAccountRequest Returns: CompletableFuture<CdpClientHttpResponse<EvmAccount>> Overload 2
Import an existing EVM account into the developer’s CDP Project. This API should be called from the CDP SDK to ensure that the associated private key is properly encrypted. Parameters: request - ImportEvmAccountRequest requestOptions - RequestOptions Returns: CompletableFuture<CdpClientHttpResponse<EvmAccount>>

exportEvmAccount

Overload 1
Export an existing EVM account’s private key. It is important to store the private key in a secure place after it’s exported. Parameters: address - String request - ExportEvmAccountRequest Returns: CompletableFuture<CdpClientHttpResponse<ExportEvmAccountResponse>> Overload 2
Export an existing EVM account’s private key. It is important to store the private key in a secure place after it’s exported. Parameters: address - String request - ExportEvmAccountRequest requestOptions - RequestOptions Returns: CompletableFuture<CdpClientHttpResponse<ExportEvmAccountResponse>>

exportEvmAccountByName

Overload 1
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. Parameters: name - String request - ExportEvmAccountByNameRequest Returns: CompletableFuture<CdpClientHttpResponse<ExportEvmAccountByNameResponse>> Overload 2
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. Parameters: name - String request - ExportEvmAccountByNameRequest requestOptions - RequestOptions Returns: CompletableFuture<CdpClientHttpResponse<ExportEvmAccountByNameResponse>>