HRMP 채널 추가하기
파라체인 A의 동작
hrmp.hrmpInitOpenChannel( recipient: 3000 // 채널을 열고자 하는 다른 파라체인 proposedMaxCapacity: 1000 // 채널에 동시에 존재할 수 있는 메시지의 최대 개수를 지정합니다 proposed_max_message_size: 102400 // 메시지의 최대 크기를 지정합니다 )polkadotXcm.send( dest: V1 parents: 1 interior: Here message: V2 XcmV2Instruction: WithdrawAsset id: Concrete parents: 0 interior: Here fun: Fungible Fungible: 1_000_000_000_000 XcmV2Instruction: BuyExecution id: Concrete parents: 0 interior: Here fun: Fungible Fungible: 1_000_000_000_000 weightLimit: Unlimited XcmV2Instruction: Transact originType: Native requireWeightAtMost: 4_000_000_000 encoded: 0x3c00b80b0000e803000000900100 // hrmpInitOpenChannel의 인코딩된 호출 데이터 XcmV2Instruction: DepositAsset assets: Wild::All maxAssets: 1 beneficiary: parents: 0 interior: Parachain(2000) )
파라체인 B의 동작
Last updated