Skip to content

Instantly share code, notes, and snippets.

@jimpick
Created August 4, 2020 23:01
Show Gist options
  • Save jimpick/75d4e0f0f4d88bc261cfef0604184de8 to your computer and use it in GitHub Desktop.
Save jimpick/75d4e0f0f4d88bc261cfef0604184de8 to your computer and use it in GitHub Desktop.
lotus state list-messages via JSON-RPC
Node: 0 - lotus state list-messages --from t3vqk4yuqqsuzksgkprhwbjjmthm3qos7jrpzqvzurlaggui5wngq6bdlq34tbcolixihgnggoz4ynwqx53phq --toheight 400
Jim request {"jsonrpc":"2.0","id":1,"method":"Filecoin.StateListMessages","params":[{"Version":0,"To":"\u003cempty\u003e","From":"t3vqk4yuqqsuzksgkprhwbjjmthm3qos7jrpzqvzurlaggui5wngq6bdlq34tbcolixihgnggoz4ynwqx53phq","Nonce":0,"Value":"0","GasPrice":"0","GasLimit":0,"Method":0,"Params":null},[],400],"meta":{"SpanContext":"AABj1sMAYGXMSHIOhuEKHW7iAbkYb9otFkATAgA="}}
Jim request {"jsonrpc":"2.0","id":2,"method":"Filecoin.ChainGetMessage","params":[{"/":"bafy2bzacebqqnwlhsqv6vpfakiqogli4i5xp2npqdk3ofmofadupifwglpvt4"}],"meta":{"SpanContext":"AABj1sMAYGXMSHIOhuEKHW7iAcxlrIYSbkV3AgA="}}
{
"Version": 0,
"To": "t01000",
"From": "t3vqk4yuqqsuzksgkprhwbjjmthm3qos7jrpzqvzurlaggui5wngq6bdlq34tbcolixihgnggoz4ynwqx53phq",
"Nonce": 10,
"Value": "1000",
"GasPrice": "2",
"GasLimit": 111894594,
"Method": 5,
"Params": "gwGBggBAgYIGWMChYV79/0MjiM/dOGuq8z/MjZJw8Tc0FtZzyP1BraaKjdJMQ5HLFb/6ZLXlGXcBrCW2+vqBL5JUwebdKyIebadz2rFqVy0k5Hl21k/hMPMtbfoDkSKDR/kzmpsa9GFIUBsXqRR8Pp+xwEQ3AJ4yf84EbUGbJYUhGA0lvv3bHIurE5g+RL+jy2rSU4lxO/hhoeujD5/CRW4/qqq14Yh0qrTF4vIy4PKOYEaALX/dwwDdFxu0BMLBCdDwqpKnx7kgWJY="
}
Jim request {"jsonrpc":"2.0","id":3,"method":"Filecoin.ChainGetMessage","params":[{"/":"bafy2bzaceb2x3sp3ujg3ehpne2gu2vs5p2whnl3lprkqqrj2lor62tdqp7qo4"}],"meta":{"SpanContext":"AABj1sMAYGXMSHIOhuEKHW7iAd+y6TL3xUrbAgA="}}
{
"Version": 0,
"To": "t01000",
"From": "t3vqk4yuqqsuzksgkprhwbjjmthm3qos7jrpzqvzurlaggui5wngq6bdlq34tbcolixihgnggoz4ynwqx53phq",
"Nonce": 9,
"Value": "1000",
"GasPrice": "2",
"GasLimit": 119573752,
"Method": 5,
"Params": "gwCBggBAgYIGWMCHoAbYyXUycyWfw13jL/kUnnSDCQdVYR7n1u6YZ0wfItxuAxhKpzB/lTzx2OcuNk62UZzlM7MZbjZ2RMTCtkte9KhhBFuvfdEggo6MeJAByiYCe/xRtIoTmSX9NTB3GmUQEnuw/t6kUTw7k+qgmXA86h+iiF71uBr9jQx1gaamsTXjmn/0zUF9aQswxZa5j9O3XlnrBb5z7NXLVRIYuwq2l64lXGGmJ6yxPA7O5g2rvRcOOHVX5sYjHjFg7YrS13k="
}
Jim request {"jsonrpc":"2.0","id":4,"method":"Filecoin.ChainGetMessage","params":[{"/":"bafy2bzaceb7jwzdwmyn74aglzdzibr2nfqgf6lqqpldpimlv53mna5etfzmr4"}],"meta":{"SpanContext":"AABj1sMAYGXMSHIOhuEKHW7iAfL/Jt/bHVA/AgA="}}
{
"Version": 0,
"To": "t01000",
"From": "t3vqk4yuqqsuzksgkprhwbjjmthm3qos7jrpzqvzurlaggui5wngq6bdlq34tbcolixihgnggoz4ynwqx53phq",
"Nonce": 8,
"Value": "35716102921680",
"GasPrice": "2",
"GasLimit": 205993470,
"Method": 7,
"Params": "ggJYwI/zAxG+GJdxTGhE5uKHxcJZOzyo4VVVgiisfK7wvAybsx6jSIxIfjLy6Ew2BLZHko72jaevIND5PRkK5PIFkkeU/kNJUBwraiW5tKc2ogWX9kELYRfLfHo7o0aWiXa54weyeWYWbZfaLv5c6YC5f5lJrOOX6XZ578c4r19PydJR4WhJGbjsAaUBCZIAvczIGq9ygWNBZs5Q/btq+JvkoLkM8CQo0tz6+ObvoxvBwOCWKyNhypJQBX5BBFUyk40ncQ=="
}
Jim request {"jsonrpc":"2.0","id":5,"method":"Filecoin.ChainGetMessage","params":[{"/":"bafy2bzaceawwgn3zt5bc5p5da3pvzg6necveumtdcuyc6pvo6vkimtkaurdnu"}],"meta":{"SpanContext":"AABj1sMAYGXMSHIOhuEKHW7iAQVNZIvAdVWjAgA="}}
{
"Version": 0,
"To": "t01000",
"From": "t3vqk4yuqqsuzksgkprhwbjjmthm3qos7jrpzqvzurlaggui5wngq6bdlq34tbcolixihgnggoz4ynwqx53phq",
"Nonce": 7,
"Value": "401105193479910",
"GasPrice": "2",
"GasLimit": 19052473,
"Method": 6,
"Params": "igEC2CpYKQABguIDgegCILmvCycBZ2FehlH9J23b2g+nen0ryIFMk+qcg0KuFdQ+OQGlgQIaAA96kfQAAAA="
}
Jim request {"jsonrpc":"2.0","id":6,"method":"Filecoin.ChainGetMessage","params":[{"/":"bafy2bzaceaf6eubbp4atxg37m2rppalcxgr7vosnvnxoeckf3yv2ynp6ysq5a"}],"meta":{"SpanContext":"AABj1sMAYGXMSHIOhuEKHW7iARiaoTelzVoHAgA="}}
{
"Version": 0,
"To": "t05",
"From": "t3vqk4yuqqsuzksgkprhwbjjmthm3qos7jrpzqvzurlaggui5wngq6bdlq34tbcolixihgnggoz4ynwqx53phq",
"Nonce": 6,
"Value": "0",
"GasPrice": "2",
"GasLimit": 344365021,
"Method": 4,
"Params": "gYGCi9gqWCgAAYHiA5IgIOWkBuni3FeIJvmZHVs/mJb4Me9KE4mGzpLoVKnTyXciGQgA9FgxA6HwWfpcJsg5jaTjlcTlUcMTjU5teczvswSNgTo3Efd967B1DCseozXT/fBmqHIGDEMA6Ad4VHsKCSJwY2lkcyI6IFsKCQl7CgkJCSIvIjogIlFtZE5CRkF6cXdWc0JCSG5YYnRlNWZmYnlWc1lWNGM0ZmcyNHhtalRtWTZnSDMiCgkJfQoJXQp9ChkjihoAD29RQwAJxEBAWGECktgNK84HDKaum0Aix9pidQnSIPF5R1RJJsmD7UTpIFE9xH2GDjM+XjhiRNmR1P79BcY8GTNqT9bC53Jg94NP1Bt8PEAswg2FvjHVRV/skvw7HzysXPBAFVcJHmQtQtMF"
}
@Thinker024
Copy link

can you tell me what Params mean ?

@jimpick
Copy link
Author

jimpick commented Jan 5, 2021

@Thinker024 It's generally base64 encoded CBOR data - it could be any type of data, depending on what the message is about.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment