Skip to content

Instantly share code, notes, and snippets.

@santteegt
Last active June 8, 2022 23:10
Show Gist options
  • Save santteegt/31c377c25da9e4dae55d5fb1aa0b3166 to your computer and use it in GitHub Desktop.
Save santteegt/31c377c25da9e4dae55d5fb1aa0b3166 to your computer and use it in GitHub Desktop.
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