API Reference
ark/v1/admin.proto (version not set)
Download OpenAPI specification:Download
AdminService_UpdateMarketHourConfig
Request Body schema: application/jsonrequired
object (v1MarketHourConfig) | |||||||||
| |||||||||
Responses
Request samples
- Payload
Content type
application/json
{- "config": {
- "startTime": "2019-08-24T14:15:22Z",
- "endTime": "2019-08-24T14:15:22Z",
- "period": "string",
- "roundInterval": "string"
}
}Response samples
- 200
- default
Content type
application/json
{ }Response samples
- 200
- default
Content type
application/json
{- "requests": [
- {
- "id": "string",
- "createdAt": "string",
- "receivers": [
- {
- "address": "string",
- "amount": "string"
}
], - "inputs": [
- {
- "txid": "string",
- "vout": 0,
- "amount": "string"
}
], - "boardingInputs": [
- {
- "txid": "string",
- "vout": 0,
- "amount": "string"
}
], - "notes": [
- "string"
], - "signingType": "string",
- "cosignersPublicKeys": [
- "string"
], - "lastPing": "string"
}
]
}Response samples
- 200
- default
Content type
application/json
{- "roundId": "string",
- "txid": "string",
- "forfeitedAmount": "string",
- "totalVtxosAmount": "string",
- "totalExitAmount": "string",
- "feesAmount": "string",
- "inputsVtxos": [
- "string"
], - "outputsVtxos": [
- "string"
], - "exitAddresses": [
- "string"
]
}Response samples
- 200
- default
Content type
application/json
{- "round": {
- "id": "string",
- "start": "string",
- "end": "string",
- "roundTx": "string",
- "vtxoTree": {
- "levels": [
- {
- "nodes": [
- {
- "txid": "string",
- "tx": "string",
- "parentTxid": "string"
}
]
}
]
}, - "forfeitTxs": [
- "string"
], - "connectors": {
- "levels": [
- {
- "nodes": [
- {
- "txid": "string",
- "tx": "string",
- "parentTxid": "string"
}
]
}
]
}, - "stage": "ROUND_STAGE_UNSPECIFIED"
}
}Response samples
- 200
- default
Content type
application/json
{- "round": {
- "id": "string",
- "start": "string",
- "end": "string",
- "roundTx": "string",
- "vtxoTree": {
- "levels": [
- {
- "nodes": [
- {
- "txid": "string",
- "tx": "string",
- "parentTxid": "string"
}
]
}
]
}, - "forfeitTxs": [
- "string"
], - "connectors": {
- "levels": [
- {
- "nodes": [
- {
- "txid": "string",
- "tx": "string",
- "parentTxid": "string"
}
]
}
]
}, - "stage": "ROUND_STAGE_UNSPECIFIED"
}
}Response samples
- 200
- default
Content type
application/json
{- "spendableVtxos": [
- {
- "outpoint": {
- "txid": "string",
- "vout": 0
}, - "spent": true,
- "roundTxid": "string",
- "spentBy": "string",
- "expireAt": "string",
- "swept": true,
- "isPending": true,
- "redeemTx": "string",
- "amount": "string",
- "pubkey": "string",
- "createdAt": "string"
}
], - "spentVtxos": [
- {
- "outpoint": {
- "txid": "string",
- "vout": 0
}, - "spent": true,
- "roundTxid": "string",
- "spentBy": "string",
- "expireAt": "string",
- "swept": true,
- "isPending": true,
- "redeemTx": "string",
- "amount": "string",
- "pubkey": "string",
- "createdAt": "string"
}
]
}Response samples
- 200
- default
Content type
application/json
{- "result": {
- "newVtxos": [
- {
- "outpoint": {
- "txid": "string",
- "vout": 0
}, - "spent": true,
- "roundTxid": "string",
- "spentBy": "string",
- "expireAt": "string",
- "swept": true,
- "isPending": true,
- "redeemTx": "string",
- "amount": "string",
- "pubkey": "string",
- "createdAt": "string"
}
], - "spentVtxos": [
- {
- "outpoint": {
- "txid": "string",
- "vout": 0
}, - "spent": true,
- "roundTxid": "string",
- "spentBy": "string",
- "expireAt": "string",
- "swept": true,
- "isPending": true,
- "redeemTx": "string",
- "amount": "string",
- "pubkey": "string",
- "createdAt": "string"
}
]
}, - "error": {
- "code": 0,
- "message": "string",
- "details": [
- {
- "@type": "string",
- "property1": null,
- "property2": null
}
]
}
}IndexerService_GetVtxoTree
path Parameters
| batchOutpoint.txid required | string |
| batchOutpoint.vout required | integer <int64> |
query Parameters
| page.size | integer <int32> |
| page.index | integer <int32> |
Responses
Response samples
- 200
- default
Content type
application/json
{- "vtxoTree": [
- {
- "txid": "string",
- "parentTxid": "string",
- "level": 0,
- "levelIndex": 0
}
], - "page": {
- "current": 0,
- "next": 0,
- "total": 0
}
}IndexerService_GetVtxoTreeLeaves
path Parameters
| batchOutpoint.txid required | string |
| batchOutpoint.vout required | integer <int64> |
query Parameters
| page.size | integer <int32> |
| page.index | integer <int32> |
Responses
Response samples
- 200
- default
Content type
application/json
{- "leaves": [
- {
- "txid": "string",
- "vout": 0
}
], - "page": {
- "current": 0,
- "next": 0,
- "total": 0
}
}Response samples
- 200
- default
Content type
application/json
{- "startedAt": "string",
- "endedAt": "string",
- "batches": {
- "property1": {
- "totalOutputAmount": "string",
- "totalOutputVtxos": 0,
- "expiresAt": "string",
- "swept": true
}, - "property2": {
- "totalOutputAmount": "string",
- "totalOutputVtxos": 0,
- "expiresAt": "string",
- "swept": true
}
}, - "totalInputAmount": "string",
- "totalInputVtxos": 0,
- "totalOutputAmount": "string",
- "totalOutputVtxos": 0
}IndexerService_GetConnectors
path Parameters
| txid required | string |
query Parameters
| page.size | integer <int32> |
| page.index | integer <int32> |
Responses
Response samples
- 200
- default
Content type
application/json
{- "connectors": [
- {
- "txid": "string",
- "parentTxid": "string",
- "level": 0,
- "levelIndex": 0
}
], - "page": {
- "current": 0,
- "next": 0,
- "total": 0
}
}IndexerService_GetVtxos
path Parameters
| addresses required | Array of strings non-empty |
query Parameters
| spendableOnly | boolean |
| spentOnly | boolean |
| page.size | integer <int32> |
| page.index | integer <int32> |
Responses
Response samples
- 200
- default
Content type
application/json
{- "vtxos": [
- {
- "outpoint": {
- "txid": "string",
- "vout": 0
}, - "createdAt": "string",
- "expiresAt": "string",
- "amount": "string",
- "script": "string",
- "isLeaf": true,
- "isSwept": true,
- "isSpent": true,
- "spentBy": "string",
- "commitmentTxid": "string"
}
], - "page": {
- "current": 0,
- "next": 0,
- "total": 0
}
}IndexerService_GetVtxosByOutpoint
path Parameters
| outpoints required | Array of strings non-empty |
query Parameters
| page.size | integer <int32> |
| page.index | integer <int32> |
Responses
Response samples
- 200
- default
Content type
application/json
{- "vtxos": [
- {
- "outpoint": {
- "txid": "string",
- "vout": 0
}, - "createdAt": "string",
- "expiresAt": "string",
- "amount": "string",
- "script": "string",
- "isLeaf": true,
- "isSwept": true,
- "isSpent": true,
- "spentBy": "string",
- "commitmentTxid": "string"
}
], - "page": {
- "current": 0,
- "next": 0,
- "total": 0
}
}IndexerService_GetTransactionHistory
path Parameters
| address required | string |
query Parameters
| startTime | string <int64> |
| endTime | string <int64> |
| page.size | integer <int32> |
| page.index | integer <int32> |
Responses
Response samples
- 200
- default
Content type
application/json
{- "history": [
- {
- "commitmentTxid": "string",
- "virtualTxid": "string",
- "type": "INDEXER_TX_TYPE_UNSPECIFIED",
- "amount": "string",
- "createdAt": "string",
- "isSettled": true,
- "settledBy": "string"
}
], - "page": {
- "current": 0,
- "next": 0,
- "total": 0
}
}IndexerService_SubscribeForScripts
Request Body schema: application/jsonrequired
| scripts | Array of strings |
| subscriptionId | string (if set, update an existing subscription) |
Responses
Request samples
- Payload
Content type
application/json
{- "scripts": [
- "string"
], - "subscriptionId": "string"
}Response samples
- 200
- default
Content type
application/json
{- "subscriptionId": "string"
}Response samples
- 200
- default
Content type
application/json
{- "result": {
- "txid": "string",
- "scripts": [
- "string"
], - "newVtxos": [
- {
- "outpoint": {
- "txid": "string",
- "vout": 0
}, - "createdAt": "string",
- "expiresAt": "string",
- "amount": "string",
- "script": "string",
- "isLeaf": true,
- "isSwept": true,
- "isSpent": true,
- "spentBy": "string",
- "commitmentTxid": "string"
}
], - "spentVtxos": [
- {
- "outpoint": {
- "txid": "string",
- "vout": 0
}, - "createdAt": "string",
- "expiresAt": "string",
- "amount": "string",
- "script": "string",
- "isLeaf": true,
- "isSwept": true,
- "isSpent": true,
- "spentBy": "string",
- "commitmentTxid": "string"
}
]
}, - "error": {
- "code": 0,
- "message": "string",
- "details": [
- {
- "@type": "string",
- "property1": null,
- "property2": null
}
]
}
}IndexerService_UnsubscribeForScripts
Request Body schema: application/jsonrequired
| subscriptionId | string |
| scripts | Array of strings (if empty, unsubscribe all scripts) |
Responses
Request samples
- Payload
Content type
application/json
{- "subscriptionId": "string",
- "scripts": [
- "string"
]
}Response samples
- 200
- default
Content type
application/json
{ }IndexerService_GetVtxoChain
path Parameters
| outpoint.txid required | string |
| outpoint.vout required | integer <int64> |
query Parameters
| page.size | integer <int32> |
| page.index | integer <int32> |
Responses
Response samples
- 200
- default
Content type
application/json
{- "chain": [
- {
- "txid": "string",
- "spends": [
- {
- "txid": "string",
- "type": "INDEXER_CHAINED_TX_TYPE_UNSPECIFIED"
}
], - "expiresAt": "string"
}
], - "depth": 0,
- "rootCommitmentTxid": "string",
- "page": {
- "current": 0,
- "next": 0,
- "total": 0
}
}Request samples
- Payload
Content type
application/json
{- "pubkey": "string"
}Response samples
- 200
- default
Content type
application/json
{- "address": "string",
- "descriptor": "string",
- "tapscripts": {
- "scripts": [
- "string"
]
}
}Response samples
- 200
- default
Content type
application/json
{- "result": {
- "roundFinalization": {
- "id": "string",
- "roundTx": "string",
- "vtxoTree": {
- "levels": [
- {
- "nodes": [
- {
- "txid": "string",
- "tx": "string",
- "parentTxid": "string"
}
]
}
]
}, - "connectors": {
- "levels": [
- {
- "nodes": [
- {
- "txid": "string",
- "tx": "string",
- "parentTxid": "string"
}
]
}
]
}, - "minRelayFeeRate": "string",
- "connectorsIndex": {
- "property1": {
- "txid": "string",
- "vout": 0
}, - "property2": {
- "txid": "string",
- "vout": 0
}
}
}, - "roundFinalized": {
- "id": "string",
- "roundTxid": "string"
}, - "roundFailed": {
- "id": "string",
- "reason": "string"
}, - "roundSigning": {
- "id": "string",
- "cosignersPubkeys": [
- "string"
], - "unsignedVtxoTree": {
- "levels": [
- {
- "nodes": [
- {
- "txid": "string",
- "tx": "string",
- "parentTxid": "string"
}
]
}
]
}, - "unsignedRoundTx": "string"
}, - "roundSigningNoncesGenerated": {
- "id": "string",
- "treeNonces": "string"
}
}, - "error": {
- "code": 0,
- "message": "string",
- "details": [
- {
- "@type": "string",
- "property1": null,
- "property2": null
}
]
}
}Response samples
- 200
- default
Content type
application/json
{- "pubkey": "string",
- "vtxoTreeExpiry": "string",
- "unilateralExitDelay": "string",
- "roundInterval": "string",
- "network": "string",
- "dust": "string",
- "boardingDescriptorTemplate": "string",
- "vtxoDescriptorTemplates": [
- "string"
], - "forfeitAddress": "string",
- "marketHour": {
- "nextStartTime": "string",
- "nextEndTime": "string",
- "period": "string",
- "roundInterval": "string"
}, - "version": "string",
- "utxoMinAmount": "string",
- "utxoMaxAmount": "string",
- "vtxoMinAmount": "string",
- "vtxoMaxAmount": "string",
- "boardingExitDelay": "string"
}ArkService_RegisterInputsForNextRound
Request Body schema: application/jsonrequired
Array of objects (v1Input) | |
| notes | Array of strings |
Responses
Request samples
- Payload
Content type
application/json
{- "inputs": [
- {
- "outpoint": {
- "txid": "string",
- "vout": 0
}, - "descriptor": "string",
- "tapscripts": {
- "scripts": [
- "string"
]
}
}
], - "notes": [
- "string"
]
}Response samples
- 200
- default
Content type
application/json
{- "requestId": "string"
}ArkService_RegisterIntent
Request Body schema: application/jsonrequired
object (v1Bip322Signature) | |
| notes | Array of strings |
Responses
Request samples
- Payload
Content type
application/json
{- "bip322Signature": {
- "signature": "string",
- "message": "string"
}, - "notes": [
- "string"
]
}Response samples
- 200
- default
Content type
application/json
{- "requestId": "string"
}ArkService_RegisterOutputsForNextRound
Request Body schema: application/jsonrequired
| requestId | string |
Array of objects (v1Output) List of receivers for to convert to leaves in the next VTXO tree. | |
object (v1Musig2) |
Responses
Request samples
- Payload
Content type
application/json
{- "requestId": "string",
- "outputs": [
- {
- "address": "string",
- "amount": "string"
}
], - "musig2": {
- "cosignersPublicKeys": [
- "string"
], - "signingAll": true
}
}Response samples
- 200
- default
Content type
application/json
{ }ArkService_SubmitSignedForfeitTxs
Request Body schema: application/jsonrequired
| signedForfeitTxs | Array of strings Forfeit txs signed by the user. |
| signedRoundTx | string The user has to sign also the round tx if he registerd a boarding UTXO. |
Responses
Request samples
- Payload
Content type
application/json
{- "signedForfeitTxs": [
- "string"
], - "signedRoundTx": "string"
}Response samples
- 200
- default
Content type
application/json
{ }ArkService_SubmitTreeNonces
Request Body schema: application/jsonrequired
| roundId | string |
| pubkey | string |
| treeNonces | string |
Responses
Request samples
- Payload
Content type
application/json
{- "roundId": "string",
- "pubkey": "string",
- "treeNonces": "string"
}Response samples
- 200
- default
Content type
application/json
{ }ArkService_SubmitTreeSignatures
Request Body schema: application/jsonrequired
| roundId | string |
| pubkey | string |
| treeSignatures | string |
Responses
Request samples
- Payload
Content type
application/json
{- "roundId": "string",
- "pubkey": "string",
- "treeSignatures": "string"
}Response samples
- 200
- default
Content type
application/json
{ }Response samples
- 200
- default
Content type
application/json
{- "result": {
- "round": {
- "txid": "string",
- "spentVtxos": [
- {
- "outpoint": {
- "txid": "string",
- "vout": 0
}, - "spent": true,
- "roundTxid": "string",
- "spentBy": "string",
- "expireAt": "string",
- "swept": true,
- "isPending": true,
- "redeemTx": "string",
- "amount": "string",
- "pubkey": "string",
- "createdAt": "string"
}
], - "spendableVtxos": [
- {
- "outpoint": {
- "txid": "string",
- "vout": 0
}, - "spent": true,
- "roundTxid": "string",
- "spentBy": "string",
- "expireAt": "string",
- "swept": true,
- "isPending": true,
- "redeemTx": "string",
- "amount": "string",
- "pubkey": "string",
- "createdAt": "string"
}
], - "claimedBoardingUtxos": [
- {
- "txid": "string",
- "vout": 0
}
], - "hex": "string"
}, - "redeem": {
- "txid": "string",
- "spentVtxos": [
- {
- "outpoint": {
- "txid": "string",
- "vout": 0
}, - "spent": true,
- "roundTxid": "string",
- "spentBy": "string",
- "expireAt": "string",
- "swept": true,
- "isPending": true,
- "redeemTx": "string",
- "amount": "string",
- "pubkey": "string",
- "createdAt": "string"
}
], - "spendableVtxos": [
- {
- "outpoint": {
- "txid": "string",
- "vout": 0
}, - "spent": true,
- "roundTxid": "string",
- "spentBy": "string",
- "expireAt": "string",
- "swept": true,
- "isPending": true,
- "redeemTx": "string",
- "amount": "string",
- "pubkey": "string",
- "createdAt": "string"
}
], - "hex": "string"
}
}, - "error": {
- "code": 0,
- "message": "string",
- "details": [
- {
- "@type": "string",
- "property1": null,
- "property2": null
}
]
}
}WalletInitializerService_Restore
Request Body schema: application/jsonrequired
| seed | string |
| password | string |
| gapLimit | string <uint64> |
Responses
Request samples
- Payload
Content type
application/json
{- "seed": "string",
- "password": "string",
- "gapLimit": "string"
}Response samples
- 200
- default
Content type
application/json
{ }