Changeset View
Changeset View
Standalone View
Standalone View
doc/REST-interface.md
Unauthenticated REST Interface | Unauthenticated REST Interface | ||||
============================== | ============================== | ||||
The REST API can be enabled with the `-rest` option. | The REST API can be enabled with the `-rest` option. | ||||
The interface runs on the same port as the JSON-RPC interface, by default port 8332 for mainnet and port 18332 for testnet. | The interface runs on the same port as the JSON-RPC interface, by default port 8332 for mainnet, port 18332 for testnet, and port 18443 for regtest. | ||||
Supported API | Supported API | ||||
------------- | ------------- | ||||
#### Transactions | #### Transactions | ||||
`GET /rest/tx/<TX-HASH>.<bin|hex|json>` | `GET /rest/tx/<TX-HASH>.<bin|hex|json>` | ||||
Given a transaction hash: returns a transaction in binary, hex-encoded binary, or JSON formats. | Given a transaction hash: returns a transaction in binary, hex-encoded binary, or JSON formats. | ||||
▲ Show 20 Lines • Show All 84 Lines • Show Last 20 Lines |