Skip to content

API keys - optional

The root authentication for rrelayer is basic auth but this gives admin access to anyone with that and thats not ideal if you wish to just have a single relayer used on a system which can just send and sign transactions. This is where API keys come in you can assign API keys to a relayer and with that API key systems can send, sign and read information about just that relayer. Note permissions will inherit on everything. This API key cannot do any write actions to the relayer itself it can only read information about the relayer and do transactions and signing with it.

rrelayer.yaml
name: first-rrelayer
description: "my first rrelayer"
api_config:
  port: 3000
  authentication_username: ${RRELAYER_AUTH_USERNAME}
  authentication_password: ${RRELAYER_AUTH_PASSWORD}
signing_provider:
  aws_kms:
    region: "eu-west-1"
networks: 
  - name: local_anvil
    chain_id: 31337
    provider_urls:
      - http://127.0.0.1:8545
    block_explorer_url: http://localhost:8545
    max_gas_price_multiplier: 4
    gas_bump_blocks_every:
      slow: 10
      medium: 5
      fast: 4
      super_fast: 2
    api_keys: 
    - relayer: "0x6f3e343161c4b905342015ad20a5c492adfb730e"
      keys: 
       - "${API_KEY_1}"
       - "${API_KEY_2}"
    - relayer: "0x70e0ba845a1a0f2da3359c97e0285013525ffc49"
      keys: 
       - "${API_KEY_3}"