static async post(env, action, ...data) {
        let blockchain = await Blockchain._init(env.config);
        env.params.from = typeof env.params.from === 'string' ? env.params.from : blockchain.accounts[0];
        let wallet = blockchain.wallets.find((wallet) => wallet.account === env.params.from);
        if (wallet) {
            env.params.from = blockchain.instance.http.wallet.addPrivateKey(wallet.privateKey);
        } else {
            env.params.from = null;
        } 
        return {
            callAccount: env.params.from,
            callData: await blockchain[env.contract][action](...data)
                                .sendTransaction(env.params)
                                .executed()
        }
    }
/**
     * @dev Calls a writeable smart contract function
     */
@dev Calls a writeable smart contract function
@dev Calls a writeable smart contract function
static async post(env, action, ...data) {
        let blockchain = await Blockchain._init(env.config);
        env.params.from = typeof env.params.from === 'string' ? env.params.from : blockchain.accounts[0];
        let wallet = blockchain.wallets.find((wallet) => wallet.account === env.params.from);
        if (wallet) {
            env.params.from = blockchain.instance.http.wallet.addPrivateKey(wallet.privateKey);
        } else {
            env.params.from = null;
        } 
        return {
            callAccount: env.params.from,
            callData: await blockchain[env.contract][action](...data)
                                .sendTransaction(env.params)
                                .executed()
        }
    }
static async post ( env , action , ... data ) { let blockchain = await Blockchain . _init ( env . config ) ; env . params . from = typeof env . params . from === 'string' ? env . params . from : blockchain . accounts [ 0 ] ; let wallet = blockchain . wallets . find ( ( wallet ) => wallet . account === env . params . from ) ; if ( wallet ) { env . params . from = blockchain . instance . http . wallet . addPrivateKey ( wallet . privateKey ) ; } else { env . params . from = null ; } return { callAccount : env . params . from , callData : await blockchain [ env . contract ] [ action ] ( ... data ) . sendTransaction ( env . params ) . executed ( ) } }
@dev Calls a writeable smart contract function
@dev Calls a writeable smart contract function