Antelope Sigining Request (ESR)
Last updated
Last updated
Antelope Signing Request (ESR) provides a standardized way for dApps to interact with wallets in the Antelope blockchain ecosystem. It allows developers to create portable, reusable signing requests for both transactions and identity verification.
We support Antelope Signing Requests for Tonomy Mainnet and Tonomy Testnet, with plans to add compatibility for EOS, Telos, and WAX in the future.
For detailed information about ESR, refer to the
Identity Requests: Request user identity in a secure, OAuth-like process.
Transaction Requests: Send and manage blockchain transactions.
Creating Identity and Transaction Requests
For instructions on how to create login or transaction requests for your dApp, refer to the official
The documentation provides comprehensive examples and tools to help you craft signing requests tailored to your dApp’s requirements.
When a signing request is received, the application detects it and triggers an event. Set up a listener to handle these events:
Resolving a request involves transforming an Antelope Signing Request (ESR) into a fully populated transaction using the necessary ABIs, account authorizations, and blockchain data. This step prepares the request for signing and broadcasting to the blockchain.
The approve
function handles the approval of an Antelope Signing Request (ESR). It resolves the transaction, signs it using the user's private key, and sends a callback to the dApp with the necessary payload.
The constructed payload is sent to the callback URL using an HTTP POST request.
The reject
method handles the rejection of a signing request. When a user decides not to proceed with a transaction, this method sends a callback to notify the originating dApp that the request was canceled.
A POST
request is sent to the callback URL, informing the dApp that the request was rejected. The body of the request includes a clear message about the cancellation.