SDK Server
mintBlue offers its' SDK functionality through a REST API. This SDK Server allows you to use the functionalities of the SDK, without having to integrate the SDK package in your solution. It's particulary meant to decrease implementation time and allow an easy way to set up proof of concepts, but also to easily integrate the functionality into non-JavaScript environments.
You can find the full specification of the SDK hereο»Ώ
JSON-RPC
The SDK Server implements a JSON-RPC specification, so there are a uniform set of methods that clients can rely on. JSON-RPC is a stateless, light-weight remote procedure call (RPC) protocol. It defines several data structures and the rules around their processing. MintBlue clients using the SDK server may utilize different programming languages when implementing the JSON-RPC specification.
More about the JSON-RPC specification can be found hereο»Ώ
Connecting the SDK Server
Check the ο»ΏmintBlue Quick Start Guide for more information on creating access tokens and projects
You can find the SDK Server at http://api.mintblue.com/sdk
The SDK Server uses SDK tokens for authentication. Provide the SDK token in your HTTP headers under key mintblue-sdk-token. Make sure your content-type is set to application/json. Below, an example request is shown.
All buffer values need to be converted to base64, and provided as a string preceded by base64:
Example: "base64:ZXhhbXBsZSB0ZXh0IGJhc2U2NCBmb3JtYXQ="
Example
Create a Peppol Transaction
In this example we create a Peppol Output on the blockchain, using the SDK Server over JSON-RPC.
List a Project's Transactions
Decode and Decrypt a Transaction
ο»Ώ