O recurso está a ser carregado... Carregamento...

Método de chamada do Ethereum RPC

Utilize oexchange.IO()função para chamar o método Ethereum RPC.

  • Consultar o saldo de ETH na carteira
    exchange.IO("api", "eth", "eth_getBalance", owner, "latest")   // owner is the specific wallet address
    
  • Transferência de ETH
    exchange.IO("api", "eth", "send", toAddress, toAmount)   // toAddress is the address of the wallet receiving ETH when transferring, toAmount is the quantity
    
  • Query gasPrice
    exchange.IO("api", "eth", "eth_gasPrice")
    
  • Query eth_estimateGás
    exchange.IO("api", "eth", "eth_estimateGas", data)
    
Registro ABI Código de suporte