यह गाइड TheRPC API का उपयोग करके Ethereum ब्लॉकचेन के साथ आप जो सबसे आम संचालन करेंगे, उन्हें कवर करती है।
{
"jsonrpc": "2.0",
"method": "eth_blockNumber",
"params": [],
"id": 1
}
अधिक जानकारी के लिए eth_blockNumber देखें।
{
"jsonrpc": "2.0",
"method": "eth_getBalance",
"params": [
"0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
"latest"
],
"id": 1
}
अधिक जानकारी के लिए eth_getBalance देखें।
{
"jsonrpc": "2.0",
"method": "eth_getTransactionByHash",
"params": [
"0x88df016429689c079f3b2f6ad39fa052532c56795b733da78a91ebe6a713944b"
],
"id": 1
}
अधिक जानकारी के लिए eth_getTransactionByHash देखें।
{
"jsonrpc": "2.0",
"method": "eth_getTransactionReceipt",
"params": [
"0x88df016429689c079f3b2f6ad39fa052532c56795b733da78a91ebe6a713944b"
],
"id": 1
}
अधिक जानकारी के लिए eth_getTransactionReceipt देखें।
{
"jsonrpc": "2.0",
"method": "eth_getBlockByNumber",
"params": [
"0xE81224",
false
],
"id": 1
}
अधिक जानकारी के लिए eth_getBlockByNumber देखें।
{
"jsonrpc": "2.0",
"method": "eth_getBlockByHash",
"params": [
"0xdc0818cf78f21a8e70579cb46a43643f78291264dda342ae31049421c82d21ae",
false
],
"id": 1
}
अधिक जानकारी के लिए eth_getBlockByHash देखें।
{
"jsonrpc": "2.0",
"method": "eth_call",
"params": [
{
"to": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
"data": "0x70a08231000000000000000000000000742d35Cc6634C0532925a3b844Bc454e4438f44e"
},
"latest"
],
"id": 1
}
अधिक जानकारी के लिए eth_call देखें।
{
"jsonrpc": "2.0",
"method": "eth_getCode",
"params": [
"0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
"latest"
],
"id": 1
}
अधिक जानकारी के लिए eth_getCode देखें।
{
"jsonrpc": "2.0",
"method": "net_version",
"params": [],
"id": 1
}
अधिक जानकारी के लिए net_version देखें।
{
"jsonrpc": "2.0",
"method": "eth_syncing",
"params": [],
"id": 1
}
अधिक जानकारी के लिए eth_syncing देखें।
{
"jsonrpc": "2.0",
"method": "eth_gasPrice",
"params": [],
"id": 1
}
अधिक जानकारी के लिए eth_gasPrice देखें।
{
"jsonrpc": "2.0",
"method": "eth_getTransactionCount",
"params": [
"0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
"latest"
],
"id": 1
}
अधिक जानकारी के लिए eth_getTransactionCount देखें।
भाषा-विशिष्ट कार्यान्वयनों के लिए, हमारे SDK देखें: