mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-26 16:25:21 +00:00
4599caca07
* query get price implemented - /pricefeed/price/xrp:usd * query rawprices implemented - /pricefeed/rawprices/xrp:usd * refactored to QueryWithMarketIDParams, added rest logic for QueryOracles * new query get oracles implemented for cli and rest - /pricefeed/oracles/xrp:usd * tx postprice implemented - /pricefeed/postprice/{MsgPostPrice} * updated contrib with post-price examples and added to README * added cliCtx.WithHeight(height) and removed import comment
40 lines
861 B
JSON
40 lines
861 B
JSON
{
|
|
"type": "cosmos-sdk/StdTx",
|
|
"value": {
|
|
"msg": [
|
|
{
|
|
"type": "cdp/MsgCreateCDP",
|
|
"value": {
|
|
"sender": "kava12jk3szk45afmvjc3xc6kvj4e40tuy2m8ckgs03",
|
|
"collateral": [
|
|
{
|
|
"denom": "xrp",
|
|
"amount": "110000000"
|
|
}
|
|
],
|
|
"principal": [
|
|
{
|
|
"denom": "usdx",
|
|
"amount": "10000000"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"fee": {
|
|
"amount": [],
|
|
"gas": "500000"
|
|
},
|
|
"signatures": [
|
|
{
|
|
"pub_key": {
|
|
"type": "tendermint/PubKeySecp256k1",
|
|
"value": "AxYhgA8CL/ZmTZCQDS2dGcccu+dv7zOBT0Wz0+grIufW"
|
|
},
|
|
"signature": "KMGQekAgj9qSqnu38swM/jTnIkrSskL4m9L3QQlBIbVZdzDQVh9Rkb0UL7TPeXTaswlSTiwFic3hvZZOcjM4SA=="
|
|
}
|
|
],
|
|
"memo": ""
|
|
}
|
|
}
|