Skip to content

Commit fe692ca

Browse files
Merge pull request #61 from InjectiveLabs/update-sdk
Add local env
2 parents b2142de + 51d1e70 commit fe692ca

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

pyinjective/constant.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,5 +122,16 @@ def mainnet(cls, node='sentry2'):
122122
env='mainnet'
123123
)
124124

125+
@classmethod
126+
def local(cls):
127+
return cls(
128+
lcd_endpoint="localhost:10337",
129+
grpc_endpoint="localhost:9900",
130+
grpc_exchange_endpoint="localhost:9910",
131+
chain_id='injective-1',
132+
fee_denom='inj',
133+
env='local'
134+
)
135+
125136
def string(self):
126137
return self.env

0 commit comments

Comments
 (0)