Sign a raw hash
This interface is for raw signing over a hash, which primarily applies to Coinbase Smart Wallet integrations, EIP-7702 authorizations and other scenarios requiring basic curve-level signing. For most use cases, such as authenticating to a website or proving ownership, we recommend signing a message.
To sign a raw hash from a wallet using the React SDK use the request
method from the wallets EIP1193 provider:
Usage
Parameters
The RPC method executed with the wallet.
The raw hash to sign over.
Returns
The signature produced by the wallet.
To sign a raw hash from a wallet using the React SDK use the request
method from the wallets EIP1193 provider:
Usage
Parameters
The RPC method executed with the wallet.
The raw hash to sign over.
Returns
The signature produced by the wallet.
Use the secp256k1Sign
method on the Ethereum client to sign a raw hash along the secp256k1 curve.
Usage
Parameters
Unique ID of the wallet to take actions with.
The hash to sign. Must start with ‘0x’.
Returns
An encoded string serializing the signature produced by the user’s wallet.
The encoding format for the returned signature
. Currently, only 'hex'
is supported for
Ethereum.
To sign a message make a POST request to
Parameters
RPC method to execute with the wallet.
Parameters for the RPC method to execute with the wallet.
Returns
The RPC method executed with the wallet.
Outputs for the RPC method executed with the wallet.