import React from "react";
import {
TransactionInstruction,
SystemProgram,
SignatureResult,
SystemInstruction,
} from "@solana/web3.js";
import { InstructionCard } from "../InstructionCard";
import { Copyable } from "components/common/Copyable";
import { UnknownDetailsCard } from "../UnknownDetailsCard";
import { Address } from "components/common/Address";
export function AssignWithSeedDetailsCard(props: {
ix: TransactionInstruction;
index: number;
result: SignatureResult;
}) {
const { ix, index, result } = props;
let params;
try {
params = SystemInstruction.decodeAssignWithSeed(ix);
} catch (err) {
console.error(err);
return ;
}
return (
Program |
|
Account Address |
|
Base Address |
|
Seed |
{params.seed}
|
Assigned Owner |
|
);
}