MCPcopy Create free account
hub / github.com/circlefin/arc-node / callRelay

Method callRelay

tests/helpers/NativeTransferHelper.ts:69–87  ·  view source on GitHub ↗
(
    account: WalletClient,
    destination: Address,
    callerValue: bigint,
    relayValue: bigint,
    requireSuccess: boolean,
    callData: Hex,
    gas?: bigint,
  )

Source from the content-addressed store, hash-verified

67 }
68
69 async callRelay(
70 account: WalletClient,
71 destination: Address,
72 callerValue: bigint,
73 relayValue: bigint,
74 requireSuccess: boolean,
75 callData: Hex,
76 gas?: bigint,
77 ): Promise<TransactionReceipt> {
78 const txHash = await account.writeContract({
79 address: this.address,
80 abi: this.abi,
81 functionName: 'relay',
82 value: callerValue,
83 args: [destination, relayValue, requireSuccess, callData],
84 gas,
85 })
86 return await this.client.waitForTransactionReceipt({ hash: txHash })
87 }
88
89 async callCreate(
90 account: WalletClient,

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected