Skip to content

Introduce address exclusion in platform.exportAVAX and other platform APIs. #988

@arijitAD

Description

@arijitAD

Describe the bug
Over time an account might have to manage p-chain multiple addresses since it uses the UTXO model. It will be helpful if there is field in exportAVAX API where we can also exclude an address.

Current API:

platform.exportAVAX(
    {
        amount: int,
        from: []string, //optional
        to: string,
        changeAddr: string, //optional
        username: string,
        password: string
    }
) -> 
{
    txID: string,
    changeAddr: string
}

Expected:

platform.exportAVAX(
    {
        amount: int,
        from: []string, //optional
        excludeAddr: []string, //optional
        to: string,
        changeAddr: string, //optional
        username: string,
        password: string
    }
) -> 
{
    txID: string,
    changeAddr: string
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions