Sumber dimuat naik... memuat...

Kaedah Panggilan Ethereum RPC

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

  • Bertanya baki ETH dalam dompet
    exchange.IO("api", "eth", "eth_getBalance", owner, "latest")   // owner is the specific wallet address
    
  • Pemindahan ETH
    exchange.IO("api", "eth", "send", toAddress, toAmount)   // toAddress is the address of the wallet receiving ETH when transferring, toAmount is the quantity
    
  • Permintaan gasPrice
    exchange.IO("api", "eth", "eth_gasPrice")
    
  • Soalan eth_estimateGas
    exchange.IO("api", "eth", "eth_estimateGas", data)
    
Daftar ABI Kod sokongan