Module: LocalBitcoins::Escrows

Included in:
Client
Defined in:
lib/localbitcoins/client/escrows.rb

Instance Method Summary collapse

Instance Method Details

#escrow_release(release_url) ⇒ Object

Release an escrow

release_url => the url of the escrow you want to release,

probably found by running the `escrows`
method above


16
17
18
19
# File 'lib/localbitcoins/client/escrows.rb', line 16

def escrow_release(release_url)
  data = oauth_request(:post, release_url)
  data['data']['message']
end

#escrowsObject

Get a list of the token owner’s releaseable escrows



5
6
7
8
# File 'lib/localbitcoins/client/escrows.rb', line 5

def escrows()
  data = oauth_request(:get, '/api/escrows')
  Hashie::Mash.new(data)
end