Getting started

Mogami Facilitator is available as a Docker image on Docker Hub. You can start it with the following command:

docker run -e PORT=8080 -p 8080:8080 mogamitech/facilitator:latest

To check whether the service is running, execute:

curl http://127.0.0.1:8080/support

As you may know, a facilitator server submits transactions on behalf of the client. The server therefore needs a private key, which you can provide with the X402_FACILITATOR_PRIVATE_KEY environment variable.

If you want to use the facilitator out of the box, it is configured with the address 0x7553F6FA4Fb62986b64f79aEFa1fB93ea64A22b1. Simply visit the Coinbase faucet and request some Ether for this address.

Last updated