@@ -75,12 +75,24 @@ func (c *Client) ListAddresses(user api.UserPass) ([]string, error) {
7575 return res .Addresses , err
7676}
7777
78- // GetUTXOs returns the byte representation of the UTXOs controlled by [addresses]
79- func (c * Client ) GetUTXOs (addresses []string ) ([][]byte , api.Index , error ) {
78+ // GetUTXOs returns the byte representation of the UTXOs controlled by [addrs]
79+ func (c * Client ) GetUTXOs (addrs []string , limit uint32 , startAddress , startUTXOID string ) ([][]byte , api.Index , error ) {
80+ return c .GetAtomicUTXOs (addrs , "" , limit , startAddress , startUTXOID )
81+ }
82+
83+ // GetAtomicUTXOs returns the byte representation of the atomic UTXOs controlled by [addresses]
84+ // from [sourceChain]
85+ func (c * Client ) GetAtomicUTXOs (addrs []string , sourceChain string , limit uint32 , startAddress , startUTXOID string ) ([][]byte , api.Index , error ) {
8086 res := & api.GetUTXOsReply {}
8187 err := c .requester .SendRequest ("getUTXOs" , & api.GetUTXOsArgs {
82- Addresses : addresses ,
83- Encoding : formatting .Hex ,
88+ Addresses : addrs ,
89+ SourceChain : sourceChain ,
90+ Limit : cjson .Uint32 (limit ),
91+ StartIndex : api.Index {
92+ Address : startAddress ,
93+ UTXO : startUTXOID ,
94+ },
95+ Encoding : formatting .Hex ,
8496 }, res )
8597 if err != nil {
8698 return nil , api.Index {}, err
0 commit comments