finance.aragonpm.eth
). It only supports The Graph for now.connectFinance()
:App
object, which means that every method and property of App
is also available on this object.Finance
instance.app
App
or Promise<App>
connector
["thegraph", Object]
or "thegraph"
"thegraph"
for now), or a tuple to also pass a configuration object to the connector.Promise<Finance>
Finance
instance (see below).finance
.subgraphUrl
directly, or use one of the supported networks.connectFinance()
. Use the following API to retrieve its data:filters
Object
filters.first
Number
1000
.filters.skip
Number
0
.Promise<Transaction[]>
filters
Object
Finance#transactions()
for details.callback
(error: Error, transactions: Transaction[]) => void
{ unsubscribe: () => void }
callback
can be null
(no error) or one of the following:tokenAddress
String
filters
Object
filters.first
Number
1000
.filters.skip
Number
0
.Promise<TokenBalance>
tokenAddress
String
filters
Object
Finance#balance()
for details.callback
(error: Error, balance: TokenBalance) => void
{ unsubscribe: () => void }
callback
can be null
(no error) or one of the following:Finance#balance()
for example.id
String
token
Address
balance
String
id
String
token
Address
entity
Address
isIncoming
Boolean
amount
String
date
String
reference
String