The federation server will be used by the banks to resolve the customer's friendly IDs into their receiving Stellar account ID and the peripheral information required to process the received transaction. Follow these steps to set up the federation servers:
- Download the federation server release from the Stellar website here (https://github.com/stellar/go/releases/tag/federation-v0.2.1).
- Select the binary corresponding to your OS version and extract the binary file.
- Copy the extracted folder and paste and create two copies of the extracted folders labeled federationA and federationB.
- Open the federation.cfg file within the extracted folders in a text editor. Configure it like so for the federation for Bank A:
port = 8001
[database]
type = "postgres"
dsn = "postgres://bankauser:bankauser@localhost/banka?sslmode=disable"
[queries...