BSV blockchainBSV blockchain

GASP — provide a foreign GASP node

POST/requestForeignGASPNode

Used by a peer overlay node to request a specific GASP node (graph vertex) by its graphID, txid, and outputIndex. The engine’s provideForeignGASPNode method handles the request.

Body application/json

graphIDstringrequired
txidstringrequired
outputIndexintegerrequired

Response

GASP node data.

Bad request — validation error or missing required field.

statusstring
messagestring
codestring

Stable machine-readable error code (see specs/errors.md).

Unexpected internal error.

statusstring
messagestring
codestring

Stable machine-readable error code (see specs/errors.md).

Request
curl -X POST "https://{fqdn}/requestForeignGASPNode" \
  -H "Content-Type: application/json" \
  -d '{
  "graphID": "string",
  "txid": "string",
  "outputIndex": 0
}'
Response
{}