Signer interface
Each Signer implements an interface.
Metadata
Get Signer metadata
GET https://api-ccmp.bitoftrade.com/metadata
{
"name": "signer_name",
"availableChains": [1, 56, 137],
"signer": "0x86f3b7f305f9d02e243a28445a15ecb6eeb12288"
}GET /metadata the endpoint returns an object with the following type:
{
"name": "signer_name",
"availableChains": [1, 56, 137],
"signer": "0x86f3b7f305f9d02e243a28445a15ecb6eeb12288"
}Where:
nameis the human-recognizable name of the signeravailableChainsis the list of supported chainssigneris 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
chainId*
Number
Chain id of the event
txHash*
String
Transaction hash of the event
abi*
Object
ABI of the event
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:
chainIdandtxHashare from the transaction that has theevent,abiis the ABI of theeventeventLogIndex(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 thesignerparams- list of the params,eventIdandeventArgs
Last updated