Skip to content

Instantly share code, notes, and snippets.

@tubackkhoa
Created December 22, 2023 07:28
Show Gist options
  • Save tubackkhoa/59740af2c4de490831705a48fa6ac235 to your computer and use it in GitHub Desktop.
Save tubackkhoa/59740af2c4de490831705a48fa6ac235 to your computer and use it in GitHub Desktop.
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