1. Home
  2. Docs
  3. Chainlink Adapters
  4. Private: Linkpool Bridges
  5. Bridges Docker Template

Bridges Docker Template

docker run -it -p 8080:8080 fourswords/fourswords-bridge:latest

Testing

To call the API, you need to send a POST request to http://localhost:<port>/ with the request body being of the ChainLink RunResult type.

curl -X POST http://localhost:8080/ \
-H 'Content-Type: application/json' \
-d @- << EOF
{
	"jobId": "1234",
	"data": {
		"api": ["https://www.bitstamp.net/api/v2/ticker/btcusd/", "https://api.pro.coinbase.com/products/btc-usd/ticker"],
		"paths": ["$.last", "$.price"],
		"aggregationType": "median"
	}
}
EOF
Was this article helpful to you? Yes No

How can we help?