Pigi (1.0)
Download OpenAPI specification:Download
mintBlue Support: support@mintBlue.com URL: http://www.mintBlue.com
Pigi API Specification
Upload a file to Bitcoin
Upload file.
If no pigi-* headers are supplied, no additional verification is done. When they are supplied the server validates whether they match the uploaded file.
Use response.identifiers.transaction[0] if it is present, otherwise use response.identifiers.file[0]
Authorizations:
API Access Token
header Parameters
pigi-file-id-hex | string SHA256 of the uploaded file encoded in hex |
pigi-file-secret-hex | string First 32 bytes of the SHA512 of the uploaded file encoded in hex |
Request Body schema: multipart/form-data
file | string <binary> |
Responses
Request samples
- Payload
Content type
multipart/form-data
No sample
Response samples
- 200
Content type
application/json
Example
{- "pigi": {
- "version": 0,
- "algorithm": "aes-256-cbc:lzma:cbor",
- "encryptedSize": 112,
- "_algorithmIndex": 0,
- "_idHex": "293ed9bd615ab11de703d27de3843c578c04d74c9f3549a00b924e9128036f1c"
}, - "bitcoin": {
- "fee": 188,
- "size": 376,
- "txid": "48b587c14b2b82c597ac96a910151a99001c999d1f24625170b19e1d22cfc63b",
- "rawtx": "0100000001d2728b2c4255714f740a21f0f60923789fff83caeaecf21879d399163778f185010000006b483045022100a683fa08130489e10ec8bff67b95cf1e755e6879887d24e9411d046a99b4e7ea02205e1bc1c1cae4fb665a7468840440339e6e3235bb5687ab7359bd5b4f16580fdc41210391cb19127cd26e8b419bc15faae19ed3e95a69f38f67560b933f0bb6f10d25f8ffffffff020000000000000000af006a04746573744ca60000293ed9bd615ab11de703d27de3843c578c04d74c9f3549a00b924e9128036f1c0000007013250da79444e87a82af9b82282dea8ba2716cbdd882f86867e9762784d30a8fda1c75932cd5cf6ca5422ee2b7e2f06749efa8f8564961e7e8e2347aeee8d044ee84257fb9135a505c5f78b708ed92e485f220bcf5c57c4b93888f5bd9d1c6e26a45e58972aec18b550ec385f022d11268978866a71d5b3309d4c3dd1a953bdf3f0f0300000000001976a914ae99d5c0320dcdd9971491c8ff20dc6c65f2f50e88ac00000000",
}, - "identifiers": {
- "raw": {
- "fileid": "293ed9bd615ab11de703d27de3843c578c04d74c9f3549a00b924e9128036f1c1",
- "secret": "Q4imbEDsOUF1FqzQVdywOGKkBzdICfysNPhTXzPKyLIE",
- "txid": "48b587c14b2b82c597ac96a910151a99001c999d1f24625170b19e1d22cfc63b"
}, - "file": [
- "pigi://pigi.kyrt.net/f/293ed9bd615ab11de703d27de3843c578c04d74c9f3549a00b924e9128036f1c?s=Q4imbEDsOUF1FqzQVdywOGKkBzdICfysNPhTXzPKyLIE",
], - "transaction": [
- "pigi://pigi.kyrt.net/t/48b587c14b2b82c597ac96a910151a99001c999d1f24625170b19e1d22cfc63b?s=Q4imbEDsOUF1FqzQVdywOGKkBzdICfysNPhTXzPKyLIE",
]
}, - "info": {
- "file": [
- "pigi://pigi.kyrt.net/fi/293ed9bd615ab11de703d27de3843c578c04d74c9f3549a00b924e9128036f1c",
], - "transaction": [
- "pigi://pigi.kyrt.net/ti/48b587c14b2b82c597ac96a910151a99001c999d1f24625170b19e1d22cfc63b",
]
}
}