What is Midpoint
Call any off-chain endpoint from your smart contract.
Got Questions? Our team responds in 5 minutes.
Midpoint is a protocol and platform for making HTTP requests from smart contracts to off-chain endpoints. Unlike traditional oracle networks - midpoints allow developers to define arbitrarily complex requests with components such as parameters/headers defined on-chain, multistep authentication workflows, private off-chain data for keys, and cross-chain functionality. We believe developers should be able to define and make a call from a smart contract to any off-chain endpoint in under five minutes and with one line of code; no deploying infrastructure and no talking to a support team.
There is no predefined list of midpoints or list of services/websites that Midpoint supports. Every day developers build midpoints to connect their smart contract to new services and endpoints - ones that we (Midpoint Labs) - have never heard of.
Request
1
// Build www.midpointapi.com with npm, add a version tag of "23" on GitHub, and deploy to production
2
IMidpoint(startpointAddress).callMidpoint(219, "npm run", bytes1(0x00) "prod", bytes1(0x00), 23);
Request and Response
1
// Check if a DocuSign document has been signed
2
uint64 Request_ID = IMidpoint(startpointAddress).callMidpoint(134, "a1cf7e68-872f-4374-b6de-129ca07fe16f");
3
4
// Take action accordingly
5
function callback(uint64 Request_ID, uint64 Midpoint_ID, string memory status, uint8 signers) public
Last modified 1d ago