更新时间:2023-12-11 GMT+08:00
nes_sendGasOptimizedTransaction
nes_sendGasOptimizedTransation接收入参为string类型的裸交易数组,并返回用于查询该Gas优化交易状态的id。接口接收裸交易数组长度限制为[1,10]。
请求示例
curl https://your-http-endpoint/your-credential \ -X POST \ -H "Content-Type: application/json" \ -d '{"jsonrpc":"2.0","method":"nes_sendGasOptimizedTransation","params":[ "0x02f87583064aba048405f5e10085012a05f20082520894958a15271aa13f6b7feb029b6114a69e6de8b693872386f26fc1000080c001a0df9b7a8ab18f081930b6c6e85fd75fdbaa1de8e0027f21bff1aeeb9d6ff6e477a062bec3ad68abc739c3bc96305a97d7952627cd95190f86e4f0cb3ffbcc002623", "0x02f87483064aba048405f5e10084ee6b280082520894958a15271aa13f6b7feb029b6114a69e6de8b693872386f26fc1000080c001a024b016079f1aa5b437f5f8c7aee25a3accb0873eab7ac86f39af10068ee725efa05896d1f7562f21f185b23d4d6c0cb735518d3e5c9f35d5fa5f900b6b9b0f80d9", "0x02f87483064aba048405f5e10084b2d05e0082520894958a15271aa13f6b7feb029b6114a69e6de8b693872386f26fc1000080c080a00f3767650d09f1330953abd4498fd8bca3ca0c1444cf56ca67e4ebda003d5ba4a042d961648b42b33846c4e1812b5727c1fba4f9cad8602b708251c912aa3f647e" ],"id":1}'
返回值
Gas优化交易的Id,可作为nes_getGasOptimizedTransactionStatus的入参传入,获取该组增强交易的状态。
{"jsonrpc":"2.0","id":1,"result":"0x4201"}
父主题: Gas优化API