Welcome to the Request Network Data Format documentation! Request Network Data Format is a Json Schema library providing standard for the data of the Request Network protocol.
It also provide a Javascript entry point to validate a given JSON.
This is still an alpha version which will evolve significantly before the main net release.
If you need help, join the Request Hub Slack.
Name | Last version | Last version | Description |
---|---|---|---|
Invoice | rnf_invoice | 0.0.1 | Format to create an invoice |
npm install requestnetwork-data-format --save
yarn add requestnetwork-data-format
import RequestNetworkDataFormat from 'requestnetwork-data-format';
let result = RequestNetworkDataFormat.validate(A_JSON_OBJECT);
if (!result.valid) {
// use the errors from result.errors
}