-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Add eth_sendRawTransaction
- Loading branch information
Showing
6 changed files
with
118 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
23 changes: 21 additions & 2 deletions
23
src/BscScan.NetCore/Models/Response/Proxy/BlockTransactionCountByNumber.cs
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,28 @@ | ||
namespace BscScan.NetCore.Models.Response.Proxy | ||
using System.Text.Json.Serialization; | ||
|
||
namespace BscScan.NetCore.Models.Response.Proxy | ||
{ | ||
/// <summary> | ||
/// BlockTransactionCountByNumber | ||
/// </summary> | ||
public class BlockTransactionCountByNumber: EthBlockNumber | ||
public class BlockTransactionCountByNumber | ||
{ | ||
/// <summary> | ||
/// JsonRpc | ||
/// </summary> | ||
[JsonPropertyName("jsonrpc")] | ||
public string? JsonRpc { get; set; } | ||
|
||
/// <summary> | ||
/// Id | ||
/// </summary> | ||
[JsonPropertyName("id")] | ||
public int Id { get; set; } | ||
|
||
/// <summary> | ||
/// result | ||
/// </summary> | ||
[JsonPropertyName("result")] | ||
public string? Result { get; set; } | ||
} | ||
} |
53 changes: 53 additions & 0 deletions
53
src/BscScan.NetCore/Models/Response/Proxy/SendRawTransaction.cs
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace BscScan.NetCore.Models.Response.Proxy | ||
{ | ||
/// <summary> | ||
/// SendRawTransaction | ||
/// </summary> | ||
public class SendRawTransaction | ||
{ | ||
/// <summary> | ||
/// JsonRpc | ||
/// </summary> | ||
[JsonPropertyName("jsonrpc")] | ||
public string? JsonRpc { get; set; } | ||
|
||
/// <summary> | ||
/// Id | ||
/// </summary> | ||
[JsonPropertyName("id")] | ||
public int Id { get; set; } | ||
|
||
/// <summary> | ||
/// result | ||
/// </summary> | ||
[JsonPropertyName("result")] | ||
public string? Result { get; set; } | ||
|
||
|
||
/// <summary> | ||
/// Error | ||
/// </summary> | ||
[JsonPropertyName("error")] | ||
public Error? Error { get; set; } | ||
} | ||
|
||
/// <summary> | ||
/// Error | ||
/// </summary> | ||
public class Error | ||
{ | ||
/// <summary> | ||
/// Code | ||
/// </summary> | ||
[JsonPropertyName("code")] | ||
public int Code { get; set; } | ||
|
||
/// <summary> | ||
/// Message | ||
/// </summary> | ||
[JsonPropertyName("message")] | ||
public string? Message { get; set; } | ||
} | ||
} |
23 changes: 21 additions & 2 deletions
23
src/BscScan.NetCore/Models/Response/Proxy/TransactionCount.cs
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,28 @@ | ||
namespace BscScan.NetCore.Models.Response.Proxy | ||
using System.Text.Json.Serialization; | ||
|
||
namespace BscScan.NetCore.Models.Response.Proxy | ||
{ | ||
/// <summary> | ||
/// TransactionCount | ||
/// </summary> | ||
public class TransactionCount : EthBlockNumber | ||
public class TransactionCount | ||
{ | ||
/// <summary> | ||
/// JsonRpc | ||
/// </summary> | ||
[JsonPropertyName("jsonrpc")] | ||
public string? JsonRpc { get; set; } | ||
|
||
/// <summary> | ||
/// Id | ||
/// </summary> | ||
[JsonPropertyName("id")] | ||
public int Id { get; set; } | ||
|
||
/// <summary> | ||
/// result | ||
/// </summary> | ||
[JsonPropertyName("result")] | ||
public string? Result { get; set; } | ||
} | ||
} |
This file contains 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