ethereum / interfaces

Interface Specifications inside Ethereum
36 stars 175 forks source link

Ethercan #23

Closed asd0086 closed 2 years ago

asd0086 commented 3 years ago

参数:[ { 来自:“0xb60e8dd61c5d32be8058bb8eb970870f07233155”, 到:“ “0x9AF2C395d87D17c23ec8B01c6624b92493ec5dF9”, 气体:“0x76c0”,// 30400 汽油价格:“0x9184e72a000”,// 1000000000000 值:'0x9184e72a',// 2441406250 数据: '0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675', }, ]];

以太坊 .request({ 方法:“eth_sendTransaction”, 参数, }) .then((结果) => { // 结果因 RPC 方法而异。 // 例如,此方法在成功时将返回事务散列十六进制字符串。 }) .catch((error) => { // 如果请求失败,Promise将错误地拒绝。 });