Gas Pump - Activation with TRON and Js

Modified on Tue, 07 Feb 2023 at 10:17 AM

Activating a TRON Gas Pump can be achieved via activateWallet > gasPump.prepare.prepareGasPumpBatch 

const prepareGasPumpBatch = async (body: any, tronWeb: ITronWeb, provider?: string, testnet?: boolean) => {

Reference: tron.gasPump.ts

import { ITronWeb } from './tron.web'
import { tronTx } from './tron.tx'

export const tronGasPump = (args: { tronWeb: ITronWeb }) => {
  return {

Good to Know

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article