Basic- Claiming Gas
QURAS blockchain supports XQC coin and XQG coin originally. XQG coin will be get reward having XQC coin.
Basic- Claiming Gas
QURAS blockchain supports XQC coin and XQG coin originally. XQG coin will be get reward having XQC coin.
import * as Quras from `quras-js`
                                        
const rpcServer = new Quras.rpc.RPCClient(Quras.CONST.QURAS_NETWORK.MAIN);

Quras.api.qurasDB.getClaimInfo(Quras.CONST.QURAS_NETWORK.MAIN, 'DknmAbcap8RnUpkLQvbXTwTXqFJMjN4QPz')
.then((data) => {
    var tx = Quras.tx.Transaction.createClaimTxWithQurasDB('20164b85226c67cb6d8fe114f3b91af3f2dfc52dcf05d708e9eca80c8d739481', data['available']);

    tx.sign('20164b85226c67cb6d8fe114f3b91af3f2dfc52dcf05d708e9eca80c8d739481'); // Sign the transaction using private key
    
    rpcServer.sendRawTransaction(testTx.serialize()) // Send the transaction to RPC Server.
    .then((data) => {
        console.log(data);
    })
    .catch ((error) => {
        console.log("error");
    });
})
.catch((error) => {
    console.log(error);
});