Skip to content

Sending TRC20 token using @makkii/app-tron #29

@ahmadbrainworks

Description

@ahmadbrainworks

Hello is there a guide for building TRC20 transaction with @makkii/app-tron, I use

        const client_ = new app_tron.TronApiClient({
            network: 'shasta',
            trongrid_api: 'https://api.shasta.trongrid.io'
        })
        const contractAddr = 'TB5NSkyzxkzi3eHW87NwFE6TmtTmnZw61y'
        const isTokenTransfer = true
        const tokenDecimal = 18
const tx = await client_.buildTransaction('TWQ2Zk63YGhUHb42WVz6pgyhzvi3b2WP8n', 'TLUeAi8mJJsXKshb4toaVcJVgeGeZ9sK2C', 0.0001,  {data_: null, gasLimit: 11, gasPrice: 111, contractAddr, isTokenTransfer, tokenDecimal});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions