Sumber daya yang dimuat... Pemuatan...

Metode Panggilan Ethereum RPC

Gunakanexchange.IO()fungsi untuk memanggil metode Ethereum RPC.

  • Menanyakan saldo ETH di dompet
    exchange.IO("api", "eth", "eth_getBalance", owner, "latest")   // owner is the specific wallet address
    
  • Transfer ETH
    exchange.IO("api", "eth", "send", toAddress, toAmount)   // toAddress is the address of the wallet receiving ETH when transferring, toAmount is the quantity
    
  • Pertanyaan gasPrice
    exchange.IO("api", "eth", "eth_gasPrice")
    
  • Pertanyaan eth_estimateGas
    exchange.IO("api", "eth", "eth_estimateGas", data)
    
Daftarkan ABI Kode Dukungan