Mogami
  • Home
  • Roadmap & ideas
  • x402 in French
  • Java client SDK
    • Getting started
    • Example client
  • Java server SDK
    • Getting started
    • Example server
    • Configuration
  • Faciliator server
    • Getting started
    • Verifications
  • Learning X402
    • Protocol explanation
      • Get /weather without X-PAYMENT
      • Get /weather with X-PAYMENT
      • Payment verification on server
      • Payment settlement on server
    • X402 hands-on
    • Useful links
  • Contact
    • Email
    • Twitter
Powered by GitBook
On this page
  1. Faciliator server

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.

PreviousConfigurationNextVerifications

Last updated 17 hours ago