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:
- Signup with Blastapi.io using a compatible wallet or using email address.
- Create a new project or use a previous created project and activate Builder API endpoint.
- 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.
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
getWalletTokenAllowances
: Get the list of spenders and allowances granted by the given wallet address across all token contracts or a specific one.getWalletTokenBalances
: Get current ERC20 token balances for the given wallet address.getWalletTokenHistory
: Get all ERC20 tokens the given wallet address has ever held.getWalletTransfers
: Get all incoming and outgoing ERC20 token transfers for the given wallet address.
Starknet specific JSON_REST Builder API available endpoints:
Block
getBlock
: Get the contents of a blockgetBlocks
: Get all blocks in a given range.getBlockTransactions
: Get the contents of all transactions in a block.
Message
getMessages
: Get all messages in a given block range.
Event
getEvents
: Get all events matching the given filters.
Transaction
getTransactions
: Get all transactions in a given block range