This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "ret":[ | |
| { | |
| "contractRet":"SUCCESS" | |
| } | |
| ], | |
| "signature":[ | |
| "02c4d9cbba952c63c955b52e64ee9c0b853f794157009cfd6421bed05bd3217b0348ba4a97fe8a45bfe34055a32060a926f5a3cbd9ecb9cc4d50f18a26a9620b01" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //C | |
| static string ConvertHexToBase58Check(string hexAddress) | |
| { | |
| byte[] addressBytes = HexToBytes(hexAddress); | |
| // 計算雙重 SHA-256 校驗碼 | |
| using (SHA256 sha256 = SHA256.Create()) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class BlockNumResponse | |
| { | |
| public string blockID { get; set; } | |
| public BlockHeader block_header { get; set; } | |
| public List<Transaction> transactions { get; set; } | |
| public class BlockHeader | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var blockInfo = GetTrc20BlockByNum("64991111"); | |
| foreach (var transaction in blockInfo.transactions) | |
| { | |
| var owner_address = ConvertHexToBase58Check(transaction.raw_data.contract[0].parameter.value.owner_address); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // GetBlockTransactionDataByContract("64991111", "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t"); | |
| /// <summary> | |
| /// 取得區塊內某合約的交易紀錄 | |
| /// </summary> | |
| /// <param name="blockNum"></param> | |
| /// <param name="contractId">合約ID</param> | |
| static void GetBlockTransactionDataByContract(string blockNum, string contractId) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class BlockData | |
| { | |
| public List<Datum> data { get; set; } | |
| public bool success { get; set; } | |
| public Meta meta { get; set; } | |
| public class Datum |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //call function | |
| //GetSMKData("GH08-9E568"); | |
| /// <summary> | |
| /// Post data to https://www.samakompra.com/searchmycer/SearchCertificate/" | |
| /// | |
| /// </summary> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // USDT TRC20 合约地址 | |
| string contractAddress = "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t"; | |
| // Tronscan API URL | |
| var i = 1; | |
| try | |
| { | |
| Console.WriteLine("--- Top 10,000 資料---"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //判斷 - 空白 , 抓取該符號後的數值 | |
| =IFERROR(REGEXEXTRACT(A25, "\d+\s*[- ,]\s*(\d+)"), "") | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| =IFERROR(REGEXEXTRACT(A25, "\d+"), "") | |