All Downloads are FREE. Search and download functionalities are using the official Maven repository.

elrond.esdt.builders.ESDTTransferBuilder Maven / Gradle / Ivy

There is a newer version: 1.0.4
Show newest version
package elrond.esdt.builders;

import elrond.esdt.common.Constants;
import elrond.esdt.common.TokenPayment;

public class ESDTTransferBuilder {
    private TokenPayment payment;

    public ESDTTransferBuilder() {
    }

    public ESDTTransferBuilder setPayment(TokenPayment payment) {
        this.payment = payment;
        return this;
    }

    public String build() {
        return String.join(Constants.ArgsDelimiter, Constants.ESDTTransferFunction, this.payment.getTokenIdentifier().toHexString(), this.payment.valueToHexString());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy