Getting started

The Mogami Facilitator Server acts as your payment gateway for x402. You can run it as a Docker image within your own infrastructure, or use our always-on hosted facilitator online.

Mogami facilitator server is available online at https://facilitator.mogami.tech (base sepolia testnet only), you can use it as much as you want! You can also our x402 console to debug your payments.

The Mogami Facilitator is also 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

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.

Configuration

You can change the facilitator private key and the RPC servers used by setting the following parameters:

docker run 	-e PORT=4020 \
		-e X402_FACILITATOR_PRIVATE_KEY=FACILITATOR_PRIVATE_KEY \
		-e RPC_URL_BASE=https://base-mainnet.infura.io/v3/INFURA_PRIVATE_KEY_FOR_BASE \
		-e RPC_URL_BASE_SEPOLIA=https://base-sepolia.infura.io/v3/INFURA_PRIVATE_KEY_FOR_BASE_SEPOLIA \
		-p 4020:8080 \
		mogamitech/facilitator:latest

Last updated