Skip to content
This repository was archived by the owner on Feb 11, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@

The address and ABI is all that's needed to use BTC Relay, in addition to the API documentation below.

Also available on:

* [ropsten](https://ropsten.etherscan.io/address/0x8ffd7bb8499879eae66ce677ab662bd46c8a6d37)
* [rinkeby](https://rinkeby.etherscan.io/address/0xa03f0c195960d078704c24ea8aca2678b06afe48)
* [kovan](https://kovan.etherscan.io/address/0xe3cc2ab5d600dbf59eb12c838a6944c8d8418efb)

## API


Expand Down Expand Up @@ -293,3 +299,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
```

## Run on xcontract

Click [here](https://xcontract.herokuapp.com/api/[%7B%20%20%20%20%22name%22:%20%22bulkStoreHeader(bytes,int256)%22,%20%20%20%20%22type%22:%20%22function%22,%20%20%20%20%22inputs%22:%20[%7B%20%22name%22:%20%22headersBytes%22,%20%22type%22:%20%22bytes%22%20%7D,%20%7B%20%22name%22:%20%22count%22,%20%22type%22:%20%22int256%22%20%7D],%20%20%20%20%22outputs%22:%20[%7B%20%22name%22:%20%22out%22,%20%22type%22:%20%22int256%22%20%7D]%7D,%7B%20%20%20%20%22name%22:%20%22computeMerkle(int256,int256,int256[])%22,%20%20%20%20%22type%22:%20%22function%22,%20%20%20%20%22inputs%22:%20[%7B%20%22name%22:%20%22txHash%22,%20%22type%22:%20%22int256%22%20%7D,%20%7B%20%22name%22:%20%22txIndex%22,%20%22type%22:%20%22int256%22%20%7D,%20%7B%20%22name%22:%20%22sibling%22,%20%22type%22:%20%22int256[]%22%20%7D],%20%20%20%20%22outputs%22:%20[%7B%20%22name%22:%20%22out%22,%20%22type%22:%20%22int256%22%20%7D]%7D,%7B%20%20%20%20%22name%22:%20%22getAverageBlockDifficulty()%22,%20%20%20%20%22type%22:%20%22function%22,%20%20%20%20%22inputs%22:%20[],%20%20%20%20%22outputs%22:%20[%7B%20%22name%22:%20%22out%22,%20%22type%22:%20%22int256%22%20%7D]%7D,%7B%20%20%20%20%22name%22:%20%22getBlockchainHead()%22,%20%20%20%20%22type%22:%20%22function%22,%20%20%20%20%22inputs%22:%20[],%20%20%20%20%22outputs%22:%20[%7B%20%22name%22:%20%22out%22,%20%22type%22:%20%22int256%22%20%7D]%7D,%7B%20%20%20%20%22name%22:%20%22getCumulativeDifficulty()%22,%20%20%20%20%22type%22:%20%22function%22,%20%20%20%20%22inputs%22:%20[],%20%20%20%20%22outputs%22:%20[%7B%20%22name%22:%20%22out%22,%20%22type%22:%20%22int256%22%20%7D]%7D,%7B%20%20%20%20%22name%22:%20%22getLastBlockHeight()%22,%20%20%20%20%22type%22:%20%22function%22,%20%20%20%20%22inputs%22:%20[],%20%20%20%20%22outputs%22:%20[%7B%20%22name%22:%20%22out%22,%20%22type%22:%20%22int256%22%20%7D]%7D,%7B%20%20%20%20%22name%22:%20%22inMainChain(int256)%22,%20%20%20%20%22type%22:%20%22function%22,%20%20%20%20%22inputs%22:%20[%7B%20%22name%22:%20%22txBlockHash%22,%20%22type%22:%20%22int256%22%20%7D],%20%20%20%20%22outputs%22:%20[%7B%20%22name%22:%20%22out%22,%20%22type%22:%20%22int256%22%20%7D]%7D,%7B%20%20%20%20%22name%22:%20%22relayTx(bytes,int256,int256,int256[],int256,int256)%22,%20%20%20%20%22type%22:%20%22function%22,%20%20%20%20%22inputs%22:%20[%7B%20%22name%22:%20%22txStr%22,%20%22type%22:%20%22bytes%22%20%7D,%20%7B%20%22name%22:%20%22txHash%22,%20%22type%22:%20%22int256%22%20%7D,%20%7B%20%22name%22:%20%22txIndex%22,%20%22type%22:%20%22int256%22%20%7D,%20%7B%20%22name%22:%20%22sibling%22,%20%22type%22:%20%22int256[]%22%20%7D,%20%7B%20%22name%22:%20%22txBlockHash%22,%20%22type%22:%20%22int256%22%20%7D,%20%7B%20%22name%22:%20%22contract%22,%20%22type%22:%20%22int256%22%20%7D],%20%20%20%20%22outputs%22:%20[%7B%20%22name%22:%20%22out%22,%20%22type%22:%20%22int256%22%20%7D]%7D,%7B%20%20%20%20%22name%22:%20%22storeBlockHeader(bytes)%22,%20%20%20%20%22type%22:%20%22function%22,%20%20%20%20%22inputs%22:%20[%7B%20%22name%22:%20%22blockHeaderBytes%22,%20%22type%22:%20%22bytes%22%20%7D],%20%20%20%20%22outputs%22:%20[%7B%20%22name%22:%20%22out%22,%20%22type%22:%20%22int256%22%20%7D]%7D,%7B%20%20%20%20%22name%22:%20%22verifyTx(int256,int256,int256[],int256)%22,%20%20%20%20%22type%22:%20%22function%22,%20%20%20%20%22inputs%22:%20[%7B%20%22name%22:%20%22txHash%22,%20%22type%22:%20%22int256%22%20%7D,%20%7B%20%22name%22:%20%22txIndex%22,%20%22type%22:%20%22int256%22%20%7D,%20%7B%20%22name%22:%20%22sibling%22,%20%22type%22:%20%22int256[]%22%20%7D,%20%7B%20%22name%22:%20%22txBlockHash%22,%20%22type%22:%20%22int256%22%20%7D],%20%20%20%20%22outputs%22:%20[%7B%20%22name%22:%20%22out%22,%20%22type%22:%20%22int256%22%20%7D]%7D]/0x41f274c0023f83391DE4e0733C609DF5a124c3d4)