A collection of relayers built on 0x and their corresponding metadata.
Addition to this repository is not a requirement to use the 0x Protocol. It's intended to make it easier for traders and developers to find SRA-Compliant relayers and take advantage of networked liquidity, as well as for users to find a relayer to start trading on.
Option A. Clone this repo and import relayers.json
into your own project or
Option B. Get the latest version by fetching it directly from this repo
$ curl -i -H "Accept: application/json" https://api.github.com/repos/0xProject/0x-relayer-registry/contents/relayers.json?client_id={CLIENT_ID}&client_secret={CLIENT_SECRET}
Entries that have values for sra_http_endpoint
or sra_ws_endpoint
comply with the Standard Relayer API. These endpoints can be easily queried using 0x Connect.
- Fork this repository.
- Add your logo image in a web-safe format (GIF, JPEG, or PNG) to the
images\logos
folder. - Add a header image for promotional display in the 0x portal in a web-safe format (GIF, JPEG, or PNG) to the
images\headers
folder. The header image should be 683x384 or larger, following a 16:9 ratio. - Add an entry to
relayers.json
that complies with the Relayer JSON Schema inschemas.ts
- Install yarn and run
yarn install
- Run
yarn test
to verify that the updatedrelayers.json
file passes schema validation. - Submit PR for approval
A sample submission:
{
"name": "Sample Relayer",
"homepage_url": "https://asamplewebsite.com",
"app_url": "https://app.asamplewebsite.com",
"header_img": "samplerelayerheader.png",
"logo_img": "samplerelayerlogo.png",
"networks": [
{
"networkId": 1,
"sra_http_endpoint": "https://api.asamplewebsite.com/",
"sra_ws_endpoint": "ws://api.asamplewebsite.com",
"static_order_fields": {
"fee_recipient_addresses": ["0x1111111111111111111111111111111111111111"]
}
}
]
}
A full list of permitted fields can be found in the schemas.ts file.