var helloContract =newweb3.eth.Contract(helloContractABI, helloContractAddress)
8
const data = helloContract.methods.hello("hello rockside").encodeABI();
9
10
console.log("DATA: "+data);
Copied!
Call Rockside Relay API
Pass in the URL the address of the destination contract (in our case the helloRockside contract), in the body specify the speed and the data. For more infos, check our Relay API.
1
curl --request POST 'https://api.rockside.io/ethereum/ropsten/relay/0x4FD167973185AD2a968339172A936641fD31F3CD'\
You can follow your transaction on Etherscan with the transaction_hash. But because Rockside is susceptible to replay a stuck transaction, this hash value can changes.
To keep track of your transaction - whatever happens to it - use the tracking_id as follow:
1
curl --request GET 'https://api.rockside.io/ethereum/ropsten/transactions/TX_TRACKING_ID'