@@ -259,6 +259,7 @@ type ChannelCreateOptions struct {
259259 WebsiteURL * string `json:"website_url,omitempty"`
260260 CoverURL * string `json:"cover_url,omitempty"`
261261 Featured []string `json:"featured,omitempty"`
262+ AccountID * string `json:"account_id,omitempty"`
262263}
263264
264265func (d * Client ) ChannelCreate (name string , bid float64 , options ChannelCreateOptions ) (* TransactionSummary , error ) {
@@ -407,11 +408,18 @@ func (d *Client) ChannelAbandon(txID string, nOut uint64, accountID *string, blo
407408 return response , nil
408409}
409410
410- func (d * Client ) AddressList (account * string ) (* AddressListResponse , error ) {
411+ func (d * Client ) AddressList (account * string , address * string ) (* AddressListResponse , error ) {
411412 response := new (AddressListResponse )
412- return response , d .call (response , "address_list" , map [string ]interface {}{
413- "account_id" : account ,
414- })
413+
414+ args := struct {
415+ AccountID * string `json:"account_id,omitempty"`
416+ Address * string `json:"address,omitempty"`
417+ }{
418+ AccountID : account ,
419+ Address : address ,
420+ }
421+ structs .DefaultTagName = "json"
422+ return response , d .call (response , "address_list" , structs .Map (args ))
415423}
416424
417425func (d * Client ) ClaimList (account * string , page uint64 , pageSize uint64 ) (* ClaimListResponse , error ) {
@@ -436,13 +444,27 @@ func (d *Client) Status() (*StatusResponse, error) {
436444 return response , d .call (response , "status" , map [string ]interface {}{})
437445}
438446
447+ func (d * Client ) TransactionList (account * string ) (* TransactionListResponse , error ) {
448+ response := new (TransactionListResponse )
449+ return response , d .call (response , "transaction_list" , map [string ]interface {}{
450+ "account_id" : account ,
451+ })
452+ }
453+
439454func (d * Client ) UTXOList (account * string ) (* UTXOListResponse , error ) {
440455 response := new (UTXOListResponse )
441456 return response , d .call (response , "utxo_list" , map [string ]interface {}{
442457 "account_id" : account ,
443458 })
444459}
445460
461+ func (d * Client ) UTXORelease (account * string ) (* UTXOReleaseResponse , error ) {
462+ response := new (UTXOReleaseResponse )
463+ return response , d .call (response , "utxo_release" , map [string ]interface {}{
464+ "account_id" : account ,
465+ })
466+ }
467+
446468func (d * Client ) Get (uri string ) (* GetResponse , error ) {
447469 response := new (GetResponse )
448470 return response , d .call (response , "get" , map [string ]interface {}{
0 commit comments