Starknet

What is Starknet Builder API ?

Builder API is the ultimate solution for developers seeking a more efficient way to build. It combines user-friendliness and ease of use with straightforward access to extensive blockchain information, to help developers meet the growing demand for innovative Web3 solutions.

The Starknet Builder API includes a dedicated suite of builder methods tailored for the Starknet ecosystem.

How to start using the Starknet Builder API

To use the Starknet Builder API, you need access to a Starknet Builder API endpoint.

Follow these steps to activate your Starknet Builder endpoint:

  1. Signup with Blastapi.io using a compatible wallet or using email address.

  2. Create a new project or use a previous created project and activate Builder API endpoint.

  3. View and get your Staknet BuilderAPI endpoint.

Now you are ready to connect to Starknet and use the Starknet Builder API to build.

All the examples in the section below use an Ethereum endpoint. Make sure you replace it with your Starknet endpoint when issuing the RPC calls.

  • https://starknet-mainnet.blastapi.io/<project-id>/builder/<method-name>

The shared JSON_REST Builder API available endpoints:

Transaction

  • getTransaction: Get the contents of a transaction by the given transaction hash.

Token

  • getTokenAllowance: Get the amount of ERC20 tokens which the spender is allowed to withdraw from the owner.

  • getTokenApprovals: Get all approvals for the given ERC20 token contract address.

  • getTokenHolders: Get all token holders for the given ERC20 token contract address.

  • getTokenMetadata: Get the metadata for the given ERC20 token contract address.

  • getTokenTransfers: Get all token transfers for a given ERC20 token contract address..

  • getTokenSupply: Get the total supply for the given ERC20 token contract address.

Logs

  • getBlockReceipts: Get the receipts for all transactions in a block.

  • getLogs: Get blockchain logs matching the given filters.

Wallet


Starknet specific JSON_REST Builder API available endpoints:

Block

Message

Event

  • getEvents: Get all events matching the given filters.

Transaction

Last updated