Auto-Peering
If you want to start one local instance of Rafiki and peer it automatically to Rafiki.money, you can run the following commands:
// using Tigerbeetle DBpnpm localenv:compose:autopeer
// OR usingPostgres DBpnpm localenv:compose:psql:autopeer
Your local Rafiki instance will be automatically peered with the remote Rafiki.money instance. The required services will be exposed externally using the tunnelmole package. The exposed ports are 3000(open-payments), 3006(auth server), 3002(ILP connector).
To use the Postman API examples, follow these steps:
- run
docker logs rafiki-cloud-nine-mock-ase-1
(alternatively, check http://localhost:3030) - find the list of created wallet addresses
- copy the url of one of the wallet addresses
- set the
senderWalletAddress
variable in the PostmanRemote Environment
to that wallet address
To shut down the connection and to clear the environment, run
pnpm localenv:compose down --volumes
This is necessary since on a new run of the scripts (with autopeering or not), the wallet address urls will differ.