UNPKG
@maestro-org/typescript-sdk
Version:
latest (1.6.3)
1.6.3
1.6.2
1.6.1
1.5.6
1.5.5
1.5.4
1.5.2
1.5.1
1.5.0
1.4.1
1.3.1
1.3.0
1.2.4
1.2.3
1.2.2
1.1.2
1.1.1
1.1.0
1.0.0
0.1.0
TypeScript SDK for the Maestro Dapp Platform
@maestro-org/typescript-sdk
/
examples
/
examples.ts
11 lines
(8 loc)
•
266 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
import
{
MaestroClient
,
Configuration
}
from
'../dist'
;
let
maestroClient =
new
MaestroClient
(
new
Configuration
({
apiKey
:
'<PROJECT_API_KEY>'
,
network
:
'Preprod'
, }), ); maestroClient.
blocks
.
blockLatest
().
then
(
(
x
) =>
console
.
log
(x.
data
));