Signer interface
Each Signer implements an interface.
Metadata
Get Signer metadata
GET
https://api-ccmp.bitoftrade.com/metadata
GET /metadata
the endpoint returns an object with the following type:
Where:
name
is the human-recognizable name of the signeravailableChains
is the list of supported chainssigner
is the address which is used to sign messages
Sign event
Get proof of the event
POST
https://api-ccmp.bitoftrade.com/sign-event
Request Body
POST /sign-event
the endpoint which is used to get proof of the event.
This endpoint requires a request body with the following type:
Where:
chainId
andtxHash
are from the transaction that has theevent
,abi
is the ABI of theevent
eventLogIndex
(optional) - parameter that specifies the log index for the event. By default, the first event-matched ABI will be selected.
The response body will have the following type:
Where:
eventHash
- hash of the eventsignature
- is signed eventHash by thesigner
params
- list of the params,eventId
andeventArgs
Last updated