Sevit

Introduction

Sevit lets you use web3 functionality through a REST API. Access the Ethereum network without having your own web3 provider - Sevit handles it all on the back-end. Get things like the owner of an NFT, get an address's balance, resolve an ENS name, call smart contract functions, and more.

Authentication

Choose a plan from RapidApi and pass your api key through the X-RapidAPI-Key header. You also have to include the X-RapidAPI-Host header with the value of sevit.p.rapidapi.com

Basic Requests

GET

Get Address Balance

Example
https://api.sevit.dev/balance/{address}

Returns the balance of an address in wei.

GET

Resolve ENS Name

Example
https://api.sevit.dev/ens/{name}

Returns the address an Ethereum Name Service name resolves to.

GET

Get Gas Price

Example
https://api.sevit.dev/gasprice

Returns the current gas price in wei.

GET

Get Transaction

Example
https://api.sevit.dev/transaction/{transactionHash}

Returns the details of a transaction.

Smart Contracts

POST

Call Smart Contract Function

Example
https://api.sevit.dev/contract/{contractAddress}/{functionName}

Calls a smart contract function (Read Only). The Contract ABI must be passed into the request body as Application/JSON. (You can get the contract ABI from https://api.etherscan.io/api?module=contract&action=getabi&address= {contractAddress}. Pass function parameters (if any) into query parameters.