Recipe logo

RSK Network

Introduction

RSK is the first general purpose smart contract platform secured by the Bitcoin Network. RSK’s Contracts goal is to add value and functionality to the bitcoin Contracts ecosystem by enabling smart contracts, near instant Contracts payments, and higher scalabiity. RSK Blockchain is connected to Bitcoin through Merged Contracts Mining and a two-way peg also known as the bridge.

The RSK blockchain is highly decentralised. RSK is merge-mined with Bitcoin, and has a hashpower that is second only to Bitcoin. As such, it is believed to be the most secure and censorship resistant smart contract platform. Refer to RSK Stats for the live value of the RSK hash rate.

Quick facts

Property Value
RSK Mainnet chainId 30
RSK Testnet chainId 31
RSK Blockchain Explorer https://explorer.rsk.co/
Block time https://stats.rsk.co/

Supported endpoints

Get token balances for address
Class A
Given chain_id and wallet address, return current token balances along with their spot prices. This endpoint supports a variety of token standards like ERC20, ERC721 and ERC1155. As a special case, network native tokens like ETH on Ethereum are also returned even though it’s not a token contract.
GET
/v1/:chain_id/address/:address/balances_v2/
Get transactions for address
Class A
Given chain_id and wallet address, return all transactions along with their decoded log events. This endpoint does a deep-crawl of the blockchain to retrieve all kinds of transactions that references the address including indexed topics within the event logs.
GET
/v1/:chain_id/address/:address/transactions_v2/
Get ERC20 token transfers for address
Class A
Given chain_id, wallet address and contract-address, return all ERC20 token contract transfers along with their historical prices at the time of their transfer.
GET
/v1/:chain_id/address/:address/transfers_v2/
Get token holders as of any block height
Class A
Given chain_id and wallet address, return a paginated list of token holders. If block-height is omitted, the latest block is used.
GET
/v1/:chain_id/tokens/:address/token_holders/
Get log events by contract address
Class A
Given chain_id and contract address, return a paginated list of decoded log events emitted by a particular smart contract.
GET
/v1/:chain_id/events/address/:address/
Get log events by topic hash(es)
Class A
Given chain_id and topic hash(es), return a paginated list of decoded log events with one or more topic hashes separated by a comma.
GET
/v1/:chain_id/events/topics/:topic/

Go to Covalent’s API Reference


Appendix

RIF Token Contract

0x2acc95758f8b5f583470ba265eb685a8f45fc9d5

RSK Smart Contract Address Mapping

Address Ethereum mainnet RSK
bridge 0x12ed69359919fc775bc2674860e8fe2d2b6a7b5d 0x9d11937e2179dc5270aa86a3f8143232d6da0e69
federation 0x7eCfda6072942577D36F939aD528b366b020004b 0x5e29C223d99648C88610519f96E85E627b3ABe17
allowTokens 0xcB789036894a83a008a2AA5b3c2DDe41D0605A9A 0xA3FC98e0a7a979677BC14d541Be770b2cb0A15F3
multiSigWallet 0x040007b1804ad78a97f541bebed377dcb60e4138 0x040007b1804ad78a97f541bebed377dcb60e4138

Mainnet and Testnet address mapping reference doc for Ethereum and RSK.

Last modified: September 21, 2022: Update postman collection URL (5744f29)