eth_coinbase
Get coinbase address on the PulseChain network.
Parameters
None - This method takes no parameters.
Returns
DATA
, 20 bytes - The coinbase address. On PulseChain, this returns the zero address as there is no mining.
Implementation Example
- cURL
- JavaScript
curl -X POST https://api-pulse-mainnet.n.dwellir.com/YOUR_API_KEY \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_coinbase",
"params": [],
"id": 1
}'
const response = await fetch('https://api-pulse-mainnet.n.dwellir.com/YOUR_API_KEY', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
jsonrpc: '2.0',
method: 'eth_coinbase',
params: [],
id: 1
})
});
const data = await response.json();
console.log(data.result);
Response Example
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x0000000000000000000000000000000000000000"
}
Need help? Contact our support team or check the PulseChain documentation.