How to connect to MAAL Chain
You can use our public rpc-urls to connect to our blockchain and interact with it.
For RPC URLs for our testnet and mainnet visit
When interacting with our own blockchain built on the Polygon (formerly Matic) network, you can use various JSON-RPC endpoints to send transactions, broadcast them, and receive transaction-related information. Here are some common JSON-RPC endpoints you can use with Web3.js to interact with our blockchain:
Send Transaction: To send a transaction to our blockchain, you typically use the
eth_sendTransaction
method. You'll need to construct a transaction object and sign it with the sender's private key.Broadcast Transaction: After constructing and signing a transaction, you can broadcast it using the
eth_sendRawTransaction
method. This sends the signed transaction data to the network for processing.Get Transaction Receipt: To retrieve information about a specific transaction, including its status and other details, you can use the
eth_getTransactionReceipt
method. This returns a receipt object containing information about the transaction's execution.Get Transaction by Hash: If you want to get detailed information about a transaction using its transaction hash, you can use the
eth_getTransactionByHash
method.Get Transaction Count: To retrieve the number of transactions sent from a specific address, you can use the
eth_getTransactionCount
method.
Here's how you might use these endpoints with Web3.js (javascript):
Please replace the placeholders ('0x...'
) with actual addresses and keys. Also, remember that interacting with real blockchains involves real value transactions and security considerations, so exercise caution and test thoroughly before using this code in a production environment.
Last updated