Created
December 22, 2023 07:28
-
-
Save tubackkhoa/59740af2c4de490831705a48fa6ac235 to your computer and use it in GitHub Desktop.
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
const client = await Tendermint37Client.create(new WebsocketClient('rpc.orai.io')); | |
const query = { | |
query: buildQuery({ | |
tags: [ | |
{ | |
key: 'wasm._contract_address', | |
value: contracts.engineAddr | |
}, | |
{ | |
key: 'wasm.action', | |
value: 'close_position' | |
}, | |
{ | |
key: 'wasm.vamm', | |
value: contracts.oraiusdcVamm | |
} | |
] | |
}), | |
per_page: 10 | |
}; | |
const events = await client.txSearch(query); | |
console.log(events); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment