Stake/Delegate to a pool
Below Javascript snippet shows how to delegate to a pool using Typhon DApp Connector
async function delegate(poolId) {
const delegationResponse = await typhon.delegationTransaction({
poolId: poolId,
});
if (delegationResponse.status === true) {
const transactionId = delegationResponse.data.transactionId;
alert("Delegation Transaction submitted, TransactionId is ", transactionId);
}
}
delegate("7df262feae9201d1b2e32d4c825ca91b29fbafb2b8e556f6efb7f549");
1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12