FULL NAME
SUBJECT
Customer Support
Customer Support
Business / Sales
Partnership
Feedback
Demo Request
Other
TEXT MESSAGE
0/300
📝 Share Your Feedback on Twitter and Claim 1M Free GetBlock Requests
Method: POST tx
tx 方法通过其标识哈希检索有关单个事务的信息。
transaction
- 细绳
交易的 256 位哈希,以十六进制表示。
binary
- 布尔值
(可选)如果为 true,则以二进制序列化为十六进制字符串的形式返回交易数据和元数据。
如果为 false,则以 JSON 形式返回交易数据和元数据。默认值为假。
min_ledger
- 数字
(可选)将此与 max_ledger 一起使用以指定最多 1000 个分类帐索引的范围,从此分类帐开始(包括在内)。
如果服务器找不到交易,它会确认它是否能够搜索到这个范围内的所有分类帐。
max_ledger
- 数字
(可选)将此与 min_ledger 一起使用以指定最多 1000 个分类帐索引的范围,以该分类帐(包括)结尾。
如果服务器找不到交易,它会确认它是否能够搜索到请求范围内的所有分类帐。
curl --location --request POST 'https://xrp.getblock.io/mainnet/' --header 'x-api-key: YOUR-API-KEY' --header 'Content-Type: application/json' --data-raw '{"jsonrpc": "2.0", "method": "tx", "params": [{"transaction": "C53ECF838647FA5A4C780377025FEC7999AB4182590510CA461444B207AB74A9"}], "id": "getblock.io"}'
{ "result": { "error": "txnNotFound", "error_code": 29, "error_message": "Transaction not found.", "request": { "command": "tx", "transaction": "C53ECF838647FA5A4C780377025FEC7999AB4182590510CA461444B207AB74A9" }, "status": "error" } }