function sendMessage() public returns ( bool ) {
//send bridge message
address[] memory addresses = new address[](1);
uint256[] memory integers = new uint256[](1);
string[] memory strings = new string[](1);
bool[] memory bools = new string[](1);
PortContract(bridgePort).outboundMessage{value: 1}(
address(this),
0x0000000000000000000000000000000000000000,
addresses, integers,
strings, bools,
"ETH-Rinkeby"
);
}
function recieveMessage() public returns ( bool ) {
//send bridge message
address[] memory addresses = new address[](1);
uint256[] memory integers = new uint256[](1);
string[] memory strings = new string[](1);
bool[] memory bools = new string[](1);
PortContract(bridgePort).outboundMessage{value: 1}(
address(this),
0x0000000000000000000000000000000000000000,
addresses, integers,
strings, bools,
"ETH-Rinkeby"
);
}
Telegraph nodes operate trustlessly, with all verification mechanisms occurring on each supported blockchain. We keep fees low where your smart contract users only have to pay the gas fees + Telegraph fee.
Nodes that complete transactions get rewarded with Telegraph tokens called $MSG.
Anyone can run a node and join the telegraph network. All participants must pay a fee in a token supported by Telegraph smart contracts.