import React from "react"; import { TransactionInstruction, SystemProgram, SignatureResult, SystemInstruction } from "@solana/web3.js"; import { displayAddress } from "utils/tx"; import { InstructionCard } from "../InstructionCard"; import Copyable from "components/Copyable"; import { UnknownDetailsCard } from "../UnknownDetailsCard"; export function NonceAuthorizeDetailsCard(props: { ix: TransactionInstruction; index: number; result: SignatureResult; }) { const { ix, index, result } = props; let params; try { params = SystemInstruction.decodeNonceAuthorize(ix); } catch (err) { console.error(err); return ; } const nonceKey = params.noncePubkey.toBase58(); const authorizedKey = params.authorizedPubkey.toBase58(); const newAuthorizedKey = params.newAuthorizedPubkey.toBase58(); return ( Program {displayAddress(SystemProgram.programId.toBase58())} Nonce Address {nonceKey} Old Authority Address {authorizedKey} New Authority Address {newAuthorizedKey} ); }
{displayAddress(SystemProgram.programId.toBase58())}
{nonceKey}
{authorizedKey}
{newAuthorizedKey}