Last active
June 8, 2022 23:10
-
-
Save santteegt/31c377c25da9e4dae55d5fb1aa0b3166 to your computer and use it in GitHub Desktop.
This file contains 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
import { NomadContext, NomadMessage } from "@nomad-xyz/sdk"; | |
async function main() { | |
const network = "rinkeby"; | |
const RPC_URI = ""; // i.e. Infura | |
const core = new NomadContext("development"); | |
core.registerRpcProvider(network, RPC_URI); | |
const txHash = "0x14931ab91c03181ae46a5c90d3b52ac8dd9128e8877bb12058607fc3a2c7330e"; | |
const msgToInspect = await NomadMessage.baseFromTransactionHash(core, network, txHash); | |
console.log("MSG to Inspect", msgToInspect); | |
}; | |
(async () => { | |
await main() | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment