UNPKG
@gateway.fm/gtw-dvf-client-js
Version:
latest (3.1.7)
3.1.7
3.1.6
3.1.5
DVF client js lib with gateway.fm rpc endpoints
github.com/gateway-fm/gtw-dvf-client-js
@gateway.fm/gtw-dvf-client-js
/
src
/
api
/
getTokenSaleStartEnd.js
12 lines
(10 loc)
•
301 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
const
{ get } =
require
(
'request-promise'
)
module
.
exports
=
async
(dvf, token) => {
if
(token) {
const
response =
await
get
(
`
${dvf.config.api}
/v1/trading/r/getTokenSaleStartEnd?token=
${token}
`
, {
headers
: {
Authorization
: dvf.
config
.
apiKey
}} )
return
response }
return
null
}