Low level object that supports queries and operations for an account on a remote chain.

interface ChainAccount {
    close: (() => Promise<void>);
    deposit: ((payment) => Promise<void>);
    executeEncodedTx: ((msgs) => Promise<string>);
    executeTx: ((msgs) => Promise<string>);
    getAddress: (() => ChainAddress);
    getPurse: ((brand) => Promise<Purse>);
    prepareTransfer: (() => Promise<Invitation>);
}

Properties

close: (() => Promise<void>)

Close the remote account

Type declaration

    • (): Promise<void>
    • Returns Promise<void>

deposit: ((payment) => Promise<void>)

deposit payment from zoe to the account

Type declaration

    • (payment): Promise<void>
    • Parameters

      • payment: Payment

      Returns Promise<void>

executeEncodedTx: ((msgs) => Promise<string>)

Submit a transaction on behalf of the remote account for execution on the remote chain.

Type declaration

    • (msgs): Promise<string>
    • Parameters

      Returns Promise<string>

Returns

acknowledge string

executeTx: ((msgs) => Promise<string>)

Submit a transaction on behalf of the remote account for execution on the remote chain.

Type declaration

    • (msgs): Promise<string>
    • Parameters

      Returns Promise<string>

Returns

acknowledgement string

getAddress: (() => ChainAddress)

Type declaration

Returns

the address of the account on the remote chain

getPurse: ((brand) => Promise<Purse>)

get Purse for a brand to .withdraw() a Payment from the account

Type declaration

    • (brand): Promise<Purse>
    • Parameters

      • brand: Brand

      Returns Promise<Purse>

prepareTransfer: (() => Promise<Invitation>)

Type declaration

    • (): Promise<Invitation>
    • Returns Promise<Invitation>