Skip to content

starka6/weixin1021

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

weixin1021

function getTxCount(address,network) {

// 根据 network 获取 RPC let rpcLink = RPC_MAP[network]; if (!rpcLink) { return "Error: Invalid Network Name"; }

// 查询地址的交易数量 const transactionRequest = { jsonrpc: "2.0", method: "eth_getTransactionCount", params: [address, "latest"], id: 1 }; const transactionResponse = UrlFetchApp.fetch(rpcLink, { method: "POST", payload: JSON.stringify(transactionRequest), headers: { "Content-Type": "application/json" }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published