#🚀・dev-support
1 messages · Page 5 of 1
I took the contract you provided in the testnet guide, its called cw20_base
Wdym it wont get approved by governance?
Is there maybe a way to verify that I didnt change the bytecode or smth?
Because surely someone approved this?
And I would if the faucet worked
...
mainnet is for production ready contracts, not for testing. that's why there are more restrictions about uploading. if you are still in the testing phase as it seems, you should use testnet. I can send you some testnet funds personally, if you share your address
But no man it is the CW20_base contract
Look
I took the contract from here
How is it not production ready?
Please, try to actually check the endpoints page in the documentation https://docs.injective.network/develop/public-endpoints. The examples that show how to deploy new tokens have the goal to show the user which are the steps. But the user has to put a little bit on his side to actually use the correct endpoints
Yep I got that, so now my deployment to mainnet went through
Or at least, the transaction but then it failed
this is an example contract, maybe people use it for production who knows. but the point is that mainnet has restrictions for uploading. it doesn't matter what contract you upload, anything would be rejected. if you are asking on how one would then even deploy anything ever to mainnet, I think the best approach would be to talk to our one of our team to explain the best process
I get that there are restrictions but isnt that "CW20" like the injective version of "ERC20"?
I have an issue after i ran a local node.
Basically I dont know the passphrase. tried using the seed to recover but requires a keyring pass. Whats the best way to go about this?
Man I just want to launch a proper memecoin
Could you send me one contract which is "approved" or a link to it?
yes but CW20 is just a standard, there are also millions of different ERC20 implementations all resulting in different bytecode
and this CW20 is just one example implementation
you mean uploaded already
Ill try to submit the proposal, idk why it would get rejected
I meant it's actually possible it was uploaded already, it would be in this list: https://explorer.injective.network/contracts/
If its example code from the official code, could you maybe share a reason why they would reject that?
Aah ok. so if my bytecode matches that of an already verified contract then its good to go too?
But if you are just trying to create an instance of the basic CW20 contract, why are you trying to submit (load) the contract code again? Just create an instance of the contract code that is already uploaded
because mainnet is like I said for production ready code, not example code. and even production ready code would need either a very well written proposal on why it should be accepted with instructions how to verify the source code or even better communicate this with someon from the team ahead of the proposal. in other words, mainnet is for contracts that use real money with real users
Oooooh
Okay now I get it(hopefully)
Waaait
Okay I think thats it then
@topaz seal how do you know this example CW20 exists on mainnet?
if we have questions about deploying tokens on INJ, where should we direct them?
Ye I thought the github code was fit for that
I don't, I am just following @tame fable's reasoning, when he was saying that someone must have uploaded that basic contract code already
And is INJ compatible with solidity?
I just wanna get WHATEVER
Code
Is verified haha
I really dont care about specifics just the simplest possible stuff
@tame fable just use testnet, that's the answer
I get that just like ERC20 there are multiple specifications but ye
I dont wanna develop a new contract
Yes it does but take a look at this step
Because I didnt upload any code to mainnet
I dont get a code_id right
TypeError: Cannot redefine property: stack
why?
https://docs.ts.injective.network/transactions/private-key#example-prepare-+-sign-+-broadcast
I use this code, but can't work
Ok, let me make it easy for you.
- You either create your own CW20 contract and you upload it (getting the code_id in the process)
- OR you ask the community if any member has already coded a CW20 contract and they are willing to share the code_id for you to create an instance (because you don't really want to do the work, just create one more meme coin out of thin air)
Ah okay, so code_id is something thats required
But idk what u mean by "not really wanting to do the work"
Do u mean that I dont want to upload a contract to testnet?
Because does the code_id from there carry over to mainnet?
Like in the tutorial the code_id was 514 right, is that some sort of a unique identifier for the code?
What I mean is that you need to implement the CW20 contract for the token you want to create, or use one contract already created
The code_id from testnet will not carry over to mainnet outomatically, no
And to deploy a contract logic in mainnet you need to go through the governance procedure
Yes, correct. Every contract definition loaded in the chain has an id (the code_id) associated to it
this code cant't work, there have anyone help me
Also note, our guide uses the official CW20 example implementation. It also includes the steps of uploading the contract.
Aah okay
But suppose that I go over here
cc @kind flare
And pick a contract
Then, if I understand everything correctly, that code has already been approved
And I can use that code_id right?
It works, you need to read the example properly
I ctrl+c this code
/root/inj/node_modules/@injectivelabs/exceptions/dist/cjs/exception.js:68
super.stack = stack;
^
TypeError: Cannot redefine property: stack
Just want to ask if there's any guide for an aspiring creator like me to release a NFT collection here in INJECTIVE?
I'm from Cardano but I'm on a new adventure and I chose INJ
I just provide secrete-key
In mainnet you need a governance proposal to deploy a contract (upload a contract's code) and a separate proposal to instantiate a contract (check https://docs.injective.network/develop/guides/cosmwasm-dapps/Cosmwasm_CW20_deployment_guide_Mainnet)
You can't release an NFT directly on Injective. You need to create a project like Talis to manage NFTs, or you can use one of the current NFT projects in Injective to launch your collection
what the mean about this TypeError: Cannot redefine property: stack
Google it out, it's not Injective or our SDK related, it's TypeScript/JavaScript and we don't have the bandwidth to help on those issues which are unrelated to Injective.
Sorry cause I'm really new to INJ. Can you redirect me to the current NFT projects in INJ for me to launch my collection?
While creating a native token on injective, where can I add an image to this token?@kind flare
I will let you do the research, since all the tools are already available. Please use this page to check all current Injective dApps and projects https://injective.com/ecosystem/
Thank you so much! This is what I needed ❤️
is it possible to rennounce mint authority of a token I created?
It's the same thing as forking here right?: https://github.com/astroport-fi/astroport-token-lists/blob/main/tokenLists/injective.json
We give them a json file and a png and they can add images so that they can be seen in injective explorer. How does this happen, are you on the same team?
I want to create my own toke on inj
can anyone help me out?
I know python, I can adapt to any language tho
is there any $ninja standard code that I can copy from?
is there an sdk for helix? typescript or rust or any other language
in the docs
what do you want to do? Helix's messages are standard in the injective-ts library
I guess i'll be clearer with what I'm asking - I'm interested in helping to build the helix protocol, and building out sdks is something ive got a lot of experience in (as well as trading bots, which is my personal fav thing to work on and the thing ive spent the most time on)
I saw you guys were hiring for some engineering roles, and so I was wondering what are the specifics re: dev workflows atm - whats the 6-month goal, what are the technical blockers/sub-projects being worked on?
can I just deploy erc-20 thru evm?
similar, yes. format may be different. Astroport is not affiliated with the injective foundation, so you'll need to do both.
not if you wnat native support. read the docs
what is native support?
if you want to run on the EVM side of INJ, thats fine. but to interact with the L1, you need to instantiate a tokenfactory token.
what would be the downsides of running running on the EVM side of INJ?
$Ninja is native right?
fees are crazy high
whats NINJA?
that meme token
oh, yes its native.
there is a detailed guide. Please go and check the documentation page
I see there is an example code. I can just use that for a basic token right?
no code needed
how?
use the injectived tool
where is it
Yes, we have TS, Python and Go SDKs. Please check the docs
on the docs
thanks:)
@topaz seal, any chance you know why the mainnet RPC (i would imagine either LCD or sentry LCD) is saying i have an empty account but the explorer says its got 0.1 INJ in it?
or any way to negate it?
added inj about 2 hours ago
Can you share the public key?
inj1f33sksq8lhd3rzaprn9qjmxt9hwqmv0pjhl9ad
Which RPC message is giving you the wrong number?
This is the result of the portfolio request (as you can see it does return the INJ shown by the explorer)
portfolio {
account_address: "inj1f33sksq8lhd3rzaprn9qjmxt9hwqmv0pjhl9ad"
bank_balances {
denom: "factory/inj1zq37mfquqgud2uqemqdkyv36gdstkxl27pj5e3/bulls"
amount: "2666666666666000000"
}
bank_balances {
denom: "inj"
amount: "100000000000000000"
}
}
yep
its the Networks.Mainnet in the TS SDK
I have to pay 10 INJ to create the token?
yes
it will always remain the same price even in the future?
presumably, unless governance or an update changes it
Is the testnet faucet down? Can anyone send me some testnet tokens pls? Thanks!
inj1zvkdzpnch8znwdlkth222jvx3wjtn52e4d5qt6
No, but I am asking which RPC message you are using when seeing the incorrect amount, not the network or URL you are using
is it likely that it might change if the INJ price gets higher in the future?
oh apologies
Error: rpc error: code = NotFound desc = account inj1f33sksq8lhd3rzaprn9qjmxt9hwqmv0pjhl9ad not found: key not found
I dont know. unlikely you'll get an answer
no, let me rephrase: what is the code you are executing?
Oh, one second, use MainnetSentry
oh im sorry, MsgSend and then using a private key signer
the only options are Mainnet, MainnetK8s, and MainnetLB
Many decisions and changes depend on the community really, and how they vote when governance proposals are created
Are you using the latest SDK version? mainnetSentry is one of the valid options (and the one that should be used)
https://github.com/InjectiveLabs/injective-ts/blob/94b7ba4223c9894c7f60f9bc4691d6b0c850b471/packages/networks/src/types.ts#L6
Things are improving fast, we know. We try hard to be as backward compatible as we can. But sometimes it is not possible (for example when we deploy new public servers)
yeah lol
tbh its mostly bc the new SDK version changes up a bunch of property names
got it working, thanks Abel!
Can anyone send me some testnet tokens pls? Thanks!
inj1zvkdzpnch8znwdlkth222jvx3wjtn52e4d5qt6
sent 1 INJ testnet
Received with thanks!
What do you mean with "full node"?
Network.mainnet() to connect to mainnet, Network.testnet() to connect to testnet
Sorry, I am not following you
Is there any candy machine availabe for Injective?
I don't know that service, but I am not sure they provide access to a node directly. You should check the project's documentation
You can fully configure the Network instance by using Network.custom() but you need to pass al required parameters (you might need to get all the URLs from nownodes docs or their support team)
is devnet on inEVM the mainnet on inEVM ?
how do i transfer LP tokens on Injective?
whenever i try it fails instantly on Leap
@topaz seal
what if i created an NFT using EVM can i make the EVM NFT to bridge on Native chain?
Guys, why can't I get the DenomMetadata for inj? I was querying it with abci_query /cosmos.bank.v1beta1.Query/DenomMetadata and getting rpc error: code = NotFound desc = client metadata for denom inj: key not found
Guys how can we see the token holders of a token on INJ?
it needs 10 $INJ to launch an token?
Yes it takes 10 INJ to create a token factory denom.
same on NFT contracts?
Where can I find a tutorial for this process? I'm used to deploying ERC20 tokens using solidity but seems it's completely different on INJ
From last 30 minutes it's showing pending.
any way that someone could make it so that Injective tx's could be accounted for in Koinly? Someone should at least create a "down'load csv" function in the injective scan. Someone also should contact Roger Hong at stake.tax (support@stake.tax).
Where does one submit security vulnerabillities & do you guys have a VDP?
any Injective devs in Bali? I'm working on a volatility reduction infrastructure to prevent dApps token from massive crashes. It's a market making infrastructure for DEX or CEX.
ser, can i get a pubilc node for dev?
trying to get testnet INJ but getting this can anyone send me Testnet INJ token.
here is my address=> 0x73426923AF5FdaDa87c6a3662E3d9253b87AC084.
it’s under maintenance ahead of the upgrade
Okay.
Yes
i got further. but now it looks like i need 10INJ to deploy a token, is that correct? seems a bit high tbh
Error: failed to execute message; message index: 0: spendable balance 299400000000000000inj is smaller than 10000000000000000000inj: insufficient funds
failed transaction on the explorer:
https://explorer.injective.network/transaction/4BC874033E042C8752248EC382E4990B995D32990D6E863A81BB48665A37ECBD/
are there any guys on how to deploy a ca on inj?
There’s an detailed information on that on the documents
which documents?
This was always the real flippening huh?
@Injective_ $INJ
https://twitter.com/AutoStakeIntern/status/1737009616091795756
sent you a DM
I need to write a send $INJ function, can I use the NodeJs library? If yes, can you give me the documents?
Can a transaction be issued if it is not a verification node?
Can I issue transactions against my own full node?
Already the latest height
what is the error
how do we open up injective?
Are there references you guys can give me on how to make a smart contract for minting an NFT collection here in INJ?
I want to buy a paid RPC node. Is there any recommended website? Because I want to test and don’t want to occupy the resources of public nodes
all cosmos projects are pretty much same code, just different end points and token denom for fees, so you can use the terra docs
https://classic-docs.terra.money/docs/develop/how-to/mint-an-nft.html
how to send a transaction with sdk?
I think you should wait for admin
Oke, thank you.
Ok
You're welcome fam
Attempted import error: 'PrivateKey' is not exported from '@injectivelabs/sdk-ts' (imported as 'PrivateKey').
What should I do about this error?
how to send a transaction with typescript sdk?
i getting thie error, when trying to create token
Error: rpc error: code = NotFound desc = account ..\
why?
not found: key not found
im curious about deploying token shold i look at terra or cosmos ?
Did you figure this out @livid coyote ?
how to export the private key from keplr wallet?
Can't we use the injective sdk ts into js?
the address you are using doesn't have any funds on it
need a hand transferring swc20 tokens, instantly fail within the wallet and cant pinpoint the right denom factory to use injectived tx bank send thanks
yes, you can, it's compiled in javascript
actually i have 1 INJ in that wallet
I am getting this error export 'getInjectiveAddress' (imported as 'getInjectiveAddress') was not found in '@injectivelabs/sdk-ts' (module has no exports)
Does someone have the source code that can do this? Can you share with me?
can you help me with this? @kind flare
What can be the issue here?
google it out
unrelated to our sdk, it's your project setup, google it out
injectived version
injectived: error while loading shared libraries: libwasmvm.x86_64.so: cannot open shared object file: No such file or directory
why??
okay, i can guarantee you that my private key is correct, and my wallet alredy funded with 1 INJ, why I still got the error?
Error: rpc error: code = NotFound desc = account ... not found: key not found
$ injectived tx tokenfactory create-denom tess --from=gov2 --chain-id=injective-1 --node=https://t
m.injective.network:443 --gas-prices=500000000inj --gas 1000000
Enter keyring passphrase:
Error: rpc error: code = NotFound desc = rpc error: code = NotFound desc = account inj1a0undl835v98m8lv0mcd2vr5jkc563wjldy87q not found: key not found
Usage:
injectived tx tokenfactory create-denom [subdenom] [flags]
same err
My address have 1 INJ
did you find fix?
Error: rpc error: code = NotFound desc = rpc error: code = NotFound desc = account inj1a0undl835v98m8lv0mcd2vr5jkc563wjldy87q not found: key not found
Your keyring setup is incorect I guess
Fixed it
RPC was incorrect
why dont you just put propoer RPC url in the docs
Also why is it required to pay 10 INJ for creating tokenFactory?
That makes it expensive than ETH lol
can I reuse tokenFactory?
how do I test something on mainnet, since astroport does not support testnet?
got any info on this?
Injectived not working on my MacBook M1. I tried installing the binaries and also build. I also tried docker
still no answer on this :/
It seems like the new @injectivelabs typescript sdk version has removed many things. But in the document there are no updates, so following the document only gives an error
Anyone please?
What is your error?
That's really expensive. Can Injective team create a proposal to reduce this price to 0.1 INJ or something like that?
I am building a node and checking the logs. Is this a success or a failure? What should I do?
how to change the rpc?
what rpc you used?
there have other fast RPC?
Maybe it's also to prevent shitcoin devs flooding chain will useless memecoins and monkey pics. I'm just a freelancer + I dont make non-utility
First one in that public endpoints doc page
see my command, in that there's url I used
--node flag
guys what is LCD endpoint? if i change only RPC endpoint is that enough?
in heavy traffic some RPCs don't work i don't want to have this situation so
found a few RPC but do i have to change LCD section
actually i want to doing it in sdk
do I really need to hold
at least 10 INJ to deploy token?
sdk is not stable enough
got 2 different errors with same setup 😭
should better I use the cli?
Yep, it's required to protect against spam but token creation is cheaper on many other networks with token-factory module
am i correct in understanding that to launch a token its 10inj for denom, 10inj for metadata, 10inj for mint
?
so count at least 30inj for token creation (not counting potential renouncing which would be another 10inj)
its 10inj for token factory then 10inj for every interaction w it
injectived tx tokenfactory mint as
@kind flare I took stagaze's addresses and converted to injective. I checked with mintscan and they are ok... But they can't get that Inj address on kplr with that private key... I mean with the same private key get the stargaze address but the injective one is another... Do you know how to get that address on wallets?
i got this
metadata's first denomination unit must be the one with base denom
any suggestion? Im trying to set denom metadata
Wait what? So basically 30 inj
seriously?
Isn’t setting that like 10 inj?
From what i know to deploy token denom 10inj only
But the other things i dont know
Ngl looking from the current price the fee is big?
Close to 400$
Didnt anyone create a proposal to adjust things out?
how to verify asset detail in scan?
already set the denom metadata but nothing happen
Submit info via github
i saw the github latest commit was few month ago
so i guess the token that live on mainnet didnt submit via github tho
Did you use inscribed?
I dont
Stargaze address is not compatible with Injective as Injective uses different derivation path than the rest of the cosmos ecosystem
but if i use the same derivation path?
for real? 10 INJ for mint, update metadata and all?
what should i do to swap the tokens from astro dex router using cli ?
so funds are lost?
is it possible to rennounce mint authority of a token I created?
there is a chance that get an injective address from a stargaze one?
Can someone answer this pls
@primal terrace
You can't
No
https://docs.ts.injective.network/wallet learn more here
so funds are irrecoverable
what should i do to swap the tokens from astro dex router using cli ?
can someone help?
You need to use a different public key than the default one on Injective and make/sign/broadcast the transaction that way. We don't have that kind of example right now so I'd leave it up to you do some reaseach.
@kind flare
Please don't post the same question in many channels at the same time
#❓︲dev-questions message
Ask Astroport
sorry sir
yes, but we already sent to the default public key... so that funds are irrecoverable?
If you keep pinging I'll restrict you from writing, we are not robots. Be patient or you are out.
sorry again, I will never do it again
As I've said, we can't do anything on your side, you have to figure this out
ok, sorry but im not asking to do something.. i just wanna know if this funds are lost or are recoverable on some way
how can I import keplr wallet on injectived cli
what's the rest endpoint for my own node?
Well, if you can somehow find the private key of the public key you sent the tokens too, I think that is the only way to recover the funds
Injective documentation page. I am positive you can find that by yourself (also the link has been shared in this same channel countless time yesterday)
Wrong channel #🔩・node-operators
@topaz seal @kind flare
ok almost impossible
Thanks for your response
Please use google guys. https://docs.cosmos.network/v0.46/run-node/keyring.html
This document describes how to configure and use the keyring and its various backends for an application.
Couldn't understand from this doc mate
guys to install Injectived it says it needs 64 gb ram, can't i run on like 32 lets say?
You should do a bit more research, we can help with Injective related stuff, this is Cosmos SDK stuff
please someone help
You should use recommended specs.
i know but would it run even tho a bit buggy on 32 gb ram?
i don't mind it being a bit slow
but would it at least run?
So, just try? I don't understand the question.
You should do one of the following:
a) Use the recommended specs
b) Refuse to follow the recommendations and just try
c) Use the correct channel for the node related question (surprisingly the correct channel has the word node in its name #🔩・node-operators)
Hey guys, please understand that our team is extremely busy and working on high priority items right now that make us unable to solve smaller issues that people have that's unrelated to Injective. Before reaching out, try to search our documentation and Google out the issues for a potential solution. We are not going to answer questions which are easy to solve by just browsing the web.
Agreed. I am beginning my journey by watching all the hackathon videos that are posted on youtube and would recommend other developers to do the same https://www.youtube.com/watch?v=IAjEs55SCBc&list=PLTS_stt4XpDC3isu2cnBGpfviy3y7_Egu
Register to join: https://injective.com/hackathon
Join us for the first-ever Injective global virtual hackathon where you’ll get the chance to build the next generation of decentralized finance applications alongside developers, creators, and industry-leading mentors from across the blockchain ecosystem.
Injective is a lightning fast interoper...
what's better to use to download injectived, kali linux or ubuntu ?
having an issue where using a mnemonic gives me a diff wallet address than in wallet extensions, anyone else had this and know how to fix?
How can I set a price like injs if I deploy a token?
do i really need to have 10 INJ for deploying token?
What is the keyring passphrase when creating a key?
The passphrase should be configured by the user
how tho
where can I see a tutorial or something
not really
Can someone help me ? I entered the same passphrase that I used to create the key
why i keep gertting error this then?
you are using an incorrect endpoint
what's the correct endpoint ? this comes from the official docs
check the endpoints section of the docs
Testnet is down for maintanance
is there somewhere where we can get official updates?
Can anyone provide a tutorial on how to write inscriptions? I am a beginner
Im doing cosmwasm and was wondering what versions were available on the chain (for the std, the optimizer...) Thanks very much !
If any one needs to launch a token lmk
i'm in your dm bruv
@quiet horizon can i dm
yes
You can use the Python SDK then
Actually me too
Did you manage to fix that? Getting the same problem.
Anyone know if there is a multisig wallet that can be used with Injective?
@wary storm how do I find my private key for keplr ? in order to use the tokencreation for example
You should check that in Keplr docs or ask Keplr support team. The wallet is not implemented by InjectiveLabs
It is possible, but the SDK does not include any high level component to do that. It was designed having market makers and traders in mind. I am not sure why in the past two days there has been such a frenzy with meme tokens creation
use injective-ts to create private key from mnemonic key instead!
thx a lot Minh
bruv, thankssssssssss, you are the man
If you already had the private key in the first line, what do you need the second line for?
No problem
the second line use for PrivateKey functionality of the lib
the first one only convert to private key in string type
If you keep the first line without executing the .toPrivateKeyHex() you already have a PrivateKey instance
Okay, thanks man. It is a bit redundant
Token factory denom needs 10inj right?
so the final code would be
const privateKey = PrivateKey.fromHex(privateKeyHash);```
@topaz seal ?
This one will do the work
do I need to Bech32 the injective Address ?
for the token creation for example
its not in the doc
yes, to define sender. For token creation, you give a look to their libs
seem like testnet is shutdown for a while, i'm trying to test deploy token also
I dmed you @strange iris
Btw Im newbie on INJ chain, I have a issue, I can't connect my wallet to vscode. Can someone help me?
After creating a pool on Astro to you get some kind of LP tokens that you can burn like on SOL?
cant pass through this error ?
Error: duplicate denomination unit factory/inj176tn6dtrvak9vrqkj2ejysuy5kctc6nphw7sfz/TestCoin
i can't get it
can anyone change the rpc in the TS sdk ?
I noticed that it's wrong..
from sdk
https://testnet.tm.injective.network
bro it means there is alr a token with that denom read what it says
"DUPLICATE"
yes if you want it to work change the mainnet rpc
nah.. I want to test it in testnet.. I can't find how to change it in the docs ?
can someone help ?
testnet down
thanks for your kind answer
ohh damn.. okay.. but can you show me how to change it ? Incase it's get back up ?
or anyone ?
is this what we receive when we create a new token ?
"account": {
"@type": "/injective.types.v1beta1.EthAccount",
"base_account": {
"address": "*************************",
"pub_key": null,
"account_number": "*****",
"sequence": "0"
},
"code_hash": "**********************"
}
}```
Anyone get this error when trying to create a pair?
Sounds like testnet is down...but why does the health and monitoring dashboard indicate the testnet is up? https://testnet.status.injective.network/
would love to know
How do I get token_meta for whatever token I need it for? Need to find out decimals for certain tokens that are not using the usual 18.
I am trying sending out our uLP token pair to Eric and/or Mirza's address but I am receiving an error. Any idea? And/or any alternatives such as LP lock etc. available?
may I ask how to use 1rpc's rpc in the python sdk.
Once I replace grpc_endpoint, an error will be reported.
Appears that the testnet faucet is also down.... can anyone send me some testnet $inj please! inj1lypqwz349za88um0m4ltjhgf8q6q8p4y93pv6p
No i was never able to fix this problem. The problem is keplr that is not using the injective derivation path. Derivating path from different sdk result me to the same public address but is different from keplr
im trying to run injectived on my mac but im getting some problems . I downloaded https://github.com/OpenDeFiFoundation/injective-core and built it from source but when i run injectived version i get the following error
Library not loaded: @rpath/libwasmvm.dylib
Referenced from: <F9D0F06A-6103-33D0-A298-1F1B0AE8D20A> /usr/local/bin/injectived
Reason: tried: '/Users/runner/go/pkg/mod/github.com/!cosm!wasm/wasmvm@v1.2.3/internal/api/libwasmvm.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/runner/go/pkg/mod/github.com/!cosm!wasm/wasmvm@v1.2.3/internal/api/libwasmvm.dylib' (no such file), '/Users/runner/go/pkg/mod/github.com/!cosm!wasm/wasmvm@v1.2.3/internal/api/libwasmvm.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/runner/go/pkg/mod/github.com/!cosm!wasm/wasmvm@v1.2.3/internal/api/libwasmvm.dylib' (no such file), '/usr/local/lib/libwasmvm.dylib' (no such file), '/usr/lib/libwasmvm.dylib' (no such file, not in dyld cache)
zsh: abort injectived version
can someone help me out with injective py
i dont get how to call a read function on a contract
QueryMsg
Are the RPCs dead? I cant use the TS SDK module at all.
any idea how to call this "GetWasmContractByAddress" in Python? Keep getting this: 'AsyncClient' object has no attribute 'GetWasmByContractAddress'
I encountered an error when i use chainRestAuthApi.fetchAccount
It prompts me that I cannot find the account details
is there no method to read contract state using python package
MsgQuery
cant be found...
in the tutorial the privatekey looks like the hex address from private key
const privateKey = "0x...";
if you display do this
const privateKeyFromMnemonic = PrivateKey.fromMnemonic(mnemonic)
console.log(privateKeyFromMnemonic)
you get an object not a string
PrivateKey {
wallet: Wallet {
_isSigner: true,
_signingKey: [Function (anonymous)],
address: '0x',
_mnemonic: [Function (anonymous)],
provider: null
}
}
{
injectiveAddress: 'inj',
ethereumAddress: '0x'
}
did you figure this out? I am trying to send LP tokens via wallet and its failing instantly
so i deployed to testnet, how do i verify and add picture
and socials and such
using astroport
unless you suggest something else
@primal terrace are you able to help out with this here or dms? thanks 
im working on the same thing, were you able to verify contract and add pic?
On mainnet yes! Not sure about testnet
this would be sensational
have you run the metadata add command?
i did on testnet
injectived tx tokenfactory set-denom-metadata this one yeah?
no need to verify a tokenfactory
does it cost any extra INJ btw outside of the 10 to deploy on main?
pictures are submitted directly to the asset registers you wish to list with
im mildly confused
i promise im a good dev
but mildly confused
never worked with inj before today 🤣
have built loads on other chains
What are the available asset registers?
I found a bug where when I successfully sent a transaction and returned the result for parsing, the code would parse the string of base64. However, the character in the screenshot I just took was not base64, and it tried to parse but reported an error. However, the transaction was already successful
how to deploy private RPC. I must deploy full node mainnet to do this?
can anyone give me some instructions on how to run injectived on my mac ? is doing it on my pc going to be way easier?
im stuck here
TypeError [ERR_INVALID_ARG_TYPE]: The "string" argument must be of type string or an instance of Buffer or ArrayBuffer. Received an instance of Address
so did this one on testnet
how do i get the contract address?
also am I submitting a pull request to the dev branch to supply token info?
just a little confused on any outstanding process to do
how did you get passed this part on
https://docs.ts.injective.network/core-modules/token-factory#full-example
const privateKeyFromMnemonic = PrivateKey.fromMnemonic(mnemonic);
//const privateKey = privateKeyFromMnemonic;
const injectiveAddress = privateKeyFromMnemonic.toAddress();
const privateKey = privateKeyFromMnemonic.toPrivateKeyHex().toString();
i keep gettin
TypeError [ERR_INVALID_ARG_TYPE]: The "string" argument must be of type string or an instance of Buffer or ArrayBuffer. Received an instance of Address
Not sure if this helps but you can try this .... const privateKeyHash = PrivateKey.fromMnemonic("Mneumonic here"); const injectiveAddress2 = privateKeyHash.toBech32() console.log(injectiveAddress2) const privateKey = privateKeyHash;
thank you got passed tht
const subdenom = "inj-test";
const denom = factory/${injectiveAddress}/${subdenom};
is this correct?
Still working on it myself....any chance you can spare some testnet inj tokens?
If so please send it here: inj1lypqwz349za88um0m4ltjhgf8q6q8p4y93pv6p
I submitted a request earlier today...it says I am in the queue...I believe the testnet token faucet is down.
sent you 2
Thank you! Received ... Now lets see if I can launch a testnet token.
how to create token with "Asset type: token factory"
Waiting 24 hours for testnet inj faucet down
inj1evzvmjdtycklkxnk4k3pxc9u8mu9tqn3e675ul
testnet sent
Has anyone run into the error "Error: error unmarshalling: invalid character 'C' looking for beginning of value" when running "injectived tx tokenfactory create-denom"?
To create a token on Injective, must pay 10 INJ ??
This is my question. Is this right?
Im trying to convert LP tokens into the bank so I can send them to Mirza, when I go to hit convert I get this error.
dispatch: submessages: Adapter is missing balance to create a new token-factory denom: execute wasm contract failed [!injective!labs/wasmd@v0.40.0-inj/x/wasm/keeper/keeper.go:394] With gas wanted: '50000000' and gas used: '180575'
Any idea on how to solve this?
Wrong rpc
One in docs for mainnet is incorrect
Yes, that is correct for mainnet. I am not sure about testnet ... can anyone else confirm?
How to create token. Any link? thanks
Working on it myself...currently reading this document . https://docs.ts.injective.network/
Could I get the proper mainnet node url?
Any idea on this?
I have no idea as I am about 1 day into these docs....but could it be a gas funding issue? "With gas wanted: '50000000' and gas used: '180575'"
This means that when we do testing we have to pay 10 INJ?
astroport on testnet is not working properly
That's what I thought at the start... But we added 11 inj and same error.
Currently looks like Testnet is down...so that may also be problematic.
No new bocks have been create in the last 25 minutes
Does 10 INJ also apply when deploying CW20?
Unfortunately, I do not know.... but I would guess with testnet being down...nothing is going to work.
Did you find a solution?
Any solution?
how to be Token Verification ? Any one help me?
guys how can i deploy a token with some custom logic? any examples or guide ?
i think yes but hard
I import into Keplr with privateKey and phrase,get the same cosmos address,but different inj address?privateKey is from crypto.getKeysFromMnemonic(mnemonic);I don't know what happen?
I need help in token logo displaying on injective exlporer.
I sent PR to https://github.com/InjectiveLabs/injective-ts 10 hours ago.
But not approved yet.
check my DM
any help?
I can help to easily launch a token or dapp on inj
can you send some INJ to the address below too?
inj1ew2z229yt5pg0cdf5numlvmp3eq7tjje5fh23g
RPC URL is not working, Transaction has been pending for the last 30 Mins.
Did you figure it out? I’m having similar issues can’t send LP tokens
@topaz seal in the future, can we deploy cw20 without submiting proposal ? like testnet
What's the token you are trying to create?
In my case the token has been created, I am trying to send the LP tokens now, from the deployer inj wallet via leap and its instantly failing when i click send. Thanks.
Exact same issue @kind flare
Not yet..
Does deploying a token need proposal first?
A native token doesnt
Yes, the adapter contract needs to be funded to create new bank denom, the fee is 10 INJ per token
could you guide me through funding the adapter contract?
its 10 INJ to be able send LP tokens? i have already created the token and its trading is live.
The OpenDefi foundation will fund it
can I dm you about this
You just have to wait and be patient
guys, how we can verify and be able to transfer tokens on kplr and leap for example?
I got the following error when instantiating a smart contract with dry run, followed by go panic. Does any one know how to resolve this issue?
Error: rpc error: code = Unknown desc = [reason:"panic" metadata:{key:"ABCICode" value:"111222"} metadata:{key:"Codespace" value:"undefined"}]: rpc error: code = Unknown desc = recovered: Block (unix) time must never be empty or negative
stack:
goroutine 847786 [running]:
runtime/debug.Stack()
/usr/local/go/src/runtime/debug/stack.go:24 +0x65
github.com/cosmos/cosmos-sdk/baseapp.newDefaultRecoveryMiddleware.func1({0x38269e0, 0x4b8a100})
/go/pkg/mod/github.com/!injective!labs/cosmos-sdk@v0.47.3-inj-9/baseapp/recovery.go:71 +0x27
Happy to wait, will let the community know thanks for reply, the LP is worth 250k and the plan was to send to INJ founder unless there was another way to lock the LP tokens please let me know 🙂
whats your issue
go: downloading github.com/googleapis/enterprise-certificate-proxy v0.2.3
cd cmd/injectived/ && go install -tags netgo -ldflags "-X github.com/InjectiveLabs/injective-core/version.AppVersion=v1.11.5 -X github.com/InjectiveLabs/injective-core/version.GitCommit=b094a25 -X github.com/InjectiveLabs/injective-core/version.BuildDate=20231220-0850 -X github.com/cosmos/cosmos-sdk/version.Version=v1.11.5 -X github.com/cosmos/cosmos-sdk/version.Name=injective -X github.com/cosmos/cosmos-sdk/version.AppName=injectived -X github.com/cosmos/cosmos-sdk/version.Commit=b094a25"
go: downloading github.com/rs/zerolog v1.27.0
go: downloading github.com/btcsuite/btcd/btcutil v1.1.3
go: downloading github.com/tyler-smith/go-bip39 v1.1.0
go: downloading github.com/cockroachdb/apd/v2 v2.0.2
go: downloading github.com/mattn/go-colorable v0.1.13
go: downloading github.com/btcsuite/btcd/chaincfg/chainhash v1.0.2
kensdev@192 injective-core % injectived version
zsh: command not found: injectived
is your path actually /path/to ?
how to check that cos i did that already
kensdev@192 injective-core % export PATH=$PATH:/path/to/injective-core
kensdev@192 injective-core % injectived version
zsh: command not found: injectived
/path/to/injective-core this looks incorrect. set it to your actual path.
Same
this fee is extra? we pay 10 inj to create the factory token...
There is 10 INJ fee to create a native denom on chain which the adapter contract has to pay in order to create the CW20 representative native on chain as a factory denom
We'll fund the adapter contarct, gotta be patient
so now we only have to wait to be able to transfer $bulls token? or i have to do something else on my side?
$BULLS are CW20?
$BULLS is token factory, so i think it is cw20
You mean convert to token factory first from CW20 and then transfer, right?
Token Factory is not the same as CW20. Can you send me the denom/asset on the explorer?
I've got a question about event listeners.
You have the following example in your Python library (injective-py) to listen to failed orders:
event_filter = (
"tm.event='Tx' AND message.sender='inj1rwv4zn3jptsqs7l8lpa3uvzhs57y8duemete9e' "
"AND message.action='/injective.exchange.v1beta1.MsgBatchUpdateOrders' "
"AND injective.exchange.v1beta1.EventOrderFail.flags EXISTS"
)
Is there any alternative for this with MsgInstantiateContract or MsgCreateDenom? where can I find all message.actions that I can specify there? Thanks.
Is testnet RPC out of sync? Just got this error when executing CLI to send a transaction:
Error: rpc error: code = Unknown desc = [reason:"incorrect account sequence" metadata:{key:"ABCICode" value:"32"} metadata:{key:"Codespace" value:"sdk"}]: rpc error: code = Unknown desc = account sequence mismatch, expected 2, got 1: incorrect account sequence [!injective!labs/cosmos-sdk@v0.47.3-inj-9/x/auth/ante/sigverify.go:269] With gas wanted: '50000000' and gas used: '37256' : unknown request
I need to install injectived on Mac @kind flare
I'm seeing the same thing. Can't broadcast transactions
okay, so you have $BULLS on chain, what's your question?
how can we transfer on kplr or leap wallet
Use the testnetSentry network https://docs.injective.network/develop/public-endpoints/#testnet
It's working fine, I have it on my Mac. Try to follow the docs.
i have loaded into my leap wallet but i cant transfer.. i dont know if injective have to whitelist it
i did
Yes
Will this allow me to convert cw-20 into bank?
yes
It doesn't seem to be working at all. Getting 502s
I'll have a look
What's the endpoints you are trying to reach tho?
Now it's working again, it seems. But still getting sequence mismatch
https://testnet.sentry.lcd.injective.network/cosmos/auth/v1beta1/accounts/xxx returns "sequence": "0"
Subsequent BroadcastTx then fails with a Error: account sequence mismatch, expected 1, got 0: incorrect account sequence
How can i send rest API ? I saw they only use grpc with python sdk
It means you have a pending transaction in the mempool
@kind flare
I don't know much about this, maybe @topaz seal can help
I don't remember ever having a successful tx response.... Is there a way to get rid of it?
I'll try a fresh address but faucet is not ...fauceting to it 🤔
Yeah, I'll have a look at the faucet today
how can we transfer on kplr or leap wallet..
i have loaded into my leap wallet but i cant transfer.. i dont know if injective have to whitelist it
Just connect to the hub and transfer
worked out well
Thanks!
great, so you just need to do a little bit of lifting on your own 😄
what next from here
You are asking me?
Lol, yes... I need your lifting now
Can we know when RPC url issue will be resolved?
Read docs
how did you transfer ulp?
please @kind flare
@kind flare
I converted using the hub and then transferred via cli
any tutorial or lanuchpad to release a coin?
Is there any other way to bridge from native Injective to $ETH. I have a transaction in progress for 10+ hours on the official Injective hub. I need another solution in the meantime asap!I used rocket X before bit injective seems to be Grayed out.
There is no need to write it in all channels, we are looking into it
I want to create a token. I found this after some research:
https://docs.ts.injective.network/core-modules/token-factory
I am very new to this. Where should I run this code? Please somebody help me
const privateKeyFromMnemonic = PrivateKey.fromMnemonic(mnemonic)
const privateKeyHash = privateKeyFromMnemonic.toPrivateKeyHex() as string
reason: 'invalid private key', why?
const wallet = (await InjectiveDirectEthSecp256k1Wallet.fromKey(
Buffer.from(privateKeyHash, "hex")
)) as OfflineDirectSigner;
this
remove "0x" in private key then it will work
thank you very much
anyone knows why im getting sm errors in my node modules after i added them in and trying to build on tsc
Please can anyone help me create a coin I will give $20 USDT
https://explorer.injective.network/account/inj17a0fp4rguzgf9mwz90y2chc3lr445nujdwc063/transactions/
i minted the token but then the token is no where to be found on my wallet or my CW-20 balance c. can u guys help?
I can see you have 1Q BONKMAS ?
does the 10INJ fee payment for token factory denum is one time only?
Please check question 15 in the FAQ section of the API documentation
The websocket connection is not something provided by Injective itself, is a functionality that is provided by Tendermint. You need to check Tendermint's documentation to find out more about the filters.
The "builders" channel is not the correct one to ask questions about how to manually transfer tokens. If you want to transfer using any of the SDKs, the docs explain how
You need to read the docs. There is a full section dedicated to the topic
i want to know if i have to whitelist or something
because on leap im not able to transfer it
I understand that you have a valid question. But:
- Injective team does not implement either Keplr or Leap. If you have doubts about those wallets you should ask their support teams.
- Injective team and community could still help with the doubt, and it is ok for you to ask the question. But you should use the correct channel. Please post your question in the #🆘︲help-and-support-old channel and use this channel for devloping tools related questions
First post and very new to this. I'm trying to set-up Injective TS in my MVC .NET project as a test. I've got typescript/node working but I'm getting constant errors:
Error Build:Module '"**/node_modules/@injectivelabs/core-proto-ts/node_modules/protobufjs/minimal"' has no default export.
Going round in circles updating packages but nothing is working. Any ideas?
Is there any video tutorial or a complete article about how to create a token on Injective?
Please check the documentation. There is a complete section on how to do that in the general documentation, and a full section also in the TS SDK documentation page (both have been shared plenty of times in the channel in the past two days, so you can either use a web search engine or you can use Discord search functionality)
if it is your code, then change default gas limit of that transaction btw. can i get the dex that you are using ?
Just wondering, have I posted the above question in the right channel?
sr man, can you give me the different between native token factory and cw20 ? (i know native token and cw20 is different, but which one should be preferred on dex?)
im asking if i have to create a PR with my token data here: https://github.com/InjectiveLabs/injective-ts/blob/master/packages/token-metadata/src/tokens/tokens/tokens.ts
How can we get contract address of denom after like making token adding metadata etc.
all we have is this:
factory/inj164dlu0as6r5a3kah6sdqv0tyx73upz8ggrcs77/TokenNameHere
where address is creator address, i mean we have no way of making a token contract address?
@topaz seal
@kind flare
I just created token on inj, buh cannot find a proper address for it
Its also non-transferable why?
made via this doc mate, i read already
Now only 2 problems:
its non-transferable,
it dont have address
its non-transferable,
it dont have address
it is, it does, read the docs please, thanks
you can also scroll in the chat here, there are tons of user asking the same question
@kind flare is there a way to set buy/sell tax for a token that is created with TokenFactory (https://docs.ts.injective.network/core-modules/token-factory )?
but how to transfer without CLI?
You can transfer using CLI, using any of the SDKs and also using Helixapp
@topaz seal
and with a kplr or leap for a normie?
i also wanna know, as i have impoted wallet in leap and i cannot transfer token via leap wallet after creating, minting and updating metadata, all done without errros.
I used this guide:
https://docs.ts.injective.network/core-modules/token-factory
Hopes u can gude us a little instead of saying scroll up. @topaz seal
No, I don't think that is possible. Could you confirm @primal terrace ?
@topaz seal while scrolling found it, how to do it?
You can connect to Helixapp with your Keplr wallet, right? And then use the transfer option
my token doesnt show there
In that case you have two options:
- Do it programmatically using any of the Injectie SDKs
- Contact your wallet support team to check if there is a way to do the transfer directly from the wallet
this mesage
u seen my message?
I have made and imported in leap wallet, now can i know why untransferable?\
Ping Leap wallet team, its not built by us. You can use the docs to send using a script if you want or wait for the Hub to add token metadata for your token and use the Wallet page on the Hub to transfer.
Where is the ''tokenfactory'' link to make a contract?
I'm a sniperbot builder in erc20, but can't seem to figure out INJ
ok, whats is hub?
and can u give link to transfer via script?
also where can i find token address instead of this long thing: factory/inj164dlu0as6r5a3kah6sdqv0tyx73upz8ggrcs77/INJAmanullahTest1
Since all those questions are covered in the documentation pages, I don't think you will get any answer here in Discord. You need to put some effort on your side and check the official documentation.
yup, buh in docs not told that how to get contract address of token
`import {
MsgExecuteContract,
MsgBroadcasterWithPk,
} from "@injectivelabs/sdk-ts";
import { Network } from "@injectivelabs/networks";
const injectiveAddress = "inj1...";
const recipientAddress = "inj2...";
const contractAddress = "cw...";
const msg = MsgExecuteContract.fromJSON({
contractAddress,
sender: injectiveAddress,
exec: {
action: "transfer",
msg: {
recipient: recipientAddress,
amount: 100000,
},
},
});
const txHash = await new MsgBroadcasterWithPk({
privateKey,
network: Network.Mainnet
}).broadcast({
msgs: msg
});
console.log(txHash);`
in this
there is place for contract address to send
Buh injecitve give this long thing factory/inj164dlu0as6r5a3kah6sdqv0tyx73upz8ggrcs77/INJAmanullahTest1
It is clear that you have not read the documentation pages carefully @hardy wraith. Tokens transfers is native funtionality in the chain, you don't have to send a request to any particular contract to do the transfer. You only need to go through a contract if you have deposited tokens in a particular contract (like for example an AMM contract, an NFT contract or any other) and you want to retrieve your funds from it
i have read docs bruh, please kindly dont say it again.
my tokens are just made and minted via token factory and my wallet address hold it
If the token exists and you have them in your wallet, just use MsgSend to transfer them to other account. And I took note that you don't want me to ask you to read the docs, so I will not do that again. Considering this promise I am making you, if you ask how to use the MsgSend I will not be able to reply
is there any other way to add tax?
hahaha, no problem bruh will not ask, i know MsgSend,
`import { MsgBroadcasterWithPk } from '@injectivelabs/wallet-ts'
import { MsgSend } from '@injectivelabs/sdk-ts'
import { BigNumberInBase } from '@injectivelabs/utils'
export const msgBroadcasterWithPk = new MsgBroadcasterWithPk({
privateKey: 0x..., /** private key hash or PrivateKey class from sdk-ts */
network: NETWORK,
})
// Usage Example
(async () => {
const signer = 'inj1...'
const msg = MsgSend.fromJSON({
amount: {
denom: 'inj',
amount: new BigNumberInBase(0.01).toWei().toFixed()
},
srcInjectiveAddress: signer,
dstInjectiveAddress: 'inj1...',
});
// Prepare + Sign + Broadcast the transaction using the Wallet Strategy
await msgBroadcasterWithPk.broadcast({
injectiveAddress: signer,
msgs: msg
})
})()`
buh problem is not it, problem is if we deploy on commercial scale, like i am making for my project discordels NFT, so normal person cannot transfer via script, they can via wallet
Then, I have to come back to what Bojan said: you either wait for the tokens to be supported by the Hub, or you contact wallets dev teams to add support for your token
can iknow what is hub?
How can you expect me to not ask you once and again to read the docs if you ask things like that? Please, check this page (second page of the official documentation) and see what is the link of the second element in the second row of the page https://docs.injective.network/learn
ok mate, lemme do again
Is the testnet still down today ? Thank you 🙂
Yes, testnet is still down for maitenance
seen it, buh inj hub have no testnet option
I am starting to think you have something personal against documentation https://docs.injective.network/develop/public-endpoints
Isn't there a Testnet Hub URL in that page?
Can you help me?
I can't create the contract by factory contract.
from one day ago.
If you send all the details about your issue we will be able to evaluate whether we can help you or not. Without the details, we surely can't.
Guys I am following this article on how to make a token using typescript:
https://docs.ts.injective.network/core-modules/token-factory
This is my first time using typescript, nodejs. I watched some YouTube videos and have started building.
Can someone please tell me why I have errors in the above code screenshot and how I can fix it. I just pasted the code from the article.
I have changed collection data. but when get the data, I always get original data.
I am not sure I undertand what you mean with "collection"
@topaz seal native token mainly use for tokens that are on others chain like usdt (pegging token), am i right ? so on dex, we mainly use cw20 token ? Thanks (I want to know about the usecases of allowing creating token factory and cw20 token)
I mean contract.
I have changed contract data and transaction is success. but contract data is reflected after 3 hours.
why?
I don't think that is correct. INJ is a native token in Injective for example
@primal terrace
@primal terrace I have changed contract data and transaction is success. but contract data is reflected after 3 hours.
why?
please help me.
I have already tagged Achilleas. Please don't keep tagging team members or you will get banned
I see.
yep but i see that all USDT and USDC token on INJ are native tokens created by token factory. So i just wonder why USDT and USDC should not be CW20 tokens instead. And I wonder for dex which type of token should be preferred ? Cw20 or Native Token because i don't see a way to add liquidity on helix.
For example: If a Native Token can be used for dex and every users can create it and it can add liquidity to dex, so when owner can auto mint a lot of tokens, it is not good at all. So that why i have asked you that token factory is mainly used for pegging tokens price from other chain like USDT
Thanks for ur time!
Wen testnet back up ?
I need just to send some amount of INJ from one address to another in INJ network, using Python. Simple transaction. But can't find easiest way to make it 😦 any suggestions?
Same question here
DEAR BUILDERS, YOUR TIME TO SHINE!!
https://vxtwitter.com/KiraOnINJ/status/1737522262310273444?s=20
i apperently cant send my created token to other wallet
can only send INJ,
anyone can help with it i have 100$ reward
same problem bro, let me know if u fixxed it
Is there any way to listen to pending transactions on inj network using the ts sdk?
got the same error on local node, "handshake: error on replay: validator set is nil in genesis and still empty after InitChain" what i need to set?
Please move the discussion to the proper channel #🔩・node-operators
@topaz seal can you answer me this ?
i don't see the method submit-proposal as in the docs. anyone have used it before ?
Could you please try injectived tx gov submit-proposal wasm-store instead?
the doc does not say about the source, can you help me what should i put on source, builder, code hash? Thanks ahead.
with the cli on docs i got this err:
I'm trying to transfer token using python-sdk. It works with denom "INJ" but not with my custom denom like this. How could I fix it?
not use it before but i think the amount should be in wei
not work with int bro
hmm, i will test it when testnet is on
Anyone no why i am getting this error when deploying to mainnet:
Error: rpc error: code = NotFound desc = account inj1597pysn2u56ggcckykt2zzjuqkeezy5yxfujtj not found: key not found
at ChainRestAuthApi.<anonymous> (/Users/nozzins/Documents/Dev/inj/node_modules/.pnpm/@injectivelabs+utils@1.14.4_google-protobuf@3.21.2/node_modules/@injectivelabs/utils/dist/cjs/classes/HttpRestClient.js:55:65)
at Generator.throw (<anonymous>)
at rejected (/Users/nozzins/Documents/Dev/inj/node_modules/.pnpm/@injectivelabs+utils@1.14.4_google-protobuf@3.21.2/node_modules/@injectivelabs/utils/dist/cjs/classes/HttpRestClient.js:6:65)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
type: 'http-request',
code: 404,
originalMessage: 'rpc error: code = NotFound desc = account inj1597pysn2u56ggcckykt2zzjuqkeezy5yxfujtj not found: key not found',
name: 'HttpRequestException',
errorClass: 'HttpRequestException',
context: 'cosmos/auth/v1beta1/accounts/inj1597pysn2u56ggcckykt2zzjuqkeezy5yxfujtj',
contextModule: undefined,
method: 'GET'
}
Its working with test net
can i see your command ?
@primal terrace
I don't think anyone will be able to help you if you do not provide the full error log
@topaz seal
here sir
Please check the Network you are using
using Mainnet
You shouldn't use that network. Please use the search tool in Discord to find the solution. The same issue has been discussed countless times in the past 3 days (you can look for messages from Bojan)
pls help me fix it @topaz seal
python sdk work with denom="INJ" but not with another custome denom
with the help of abel i think you should change to MainnetSentry instead
Without knowing your script code, it seems like you are not creating the Composer instance the proper way. The solution to that is in the API docs page
here sir, just replace network, privatekey, receiver and denom
❤️
Ok, you are creating the Composer instance the correct way then. Please take into account that if you are not working with a token that is part of any of the spot or derivative markets in Injective, you will have to create the MsgSend without using the Composer (the Composer is prepared to work with tokens for active markets, because it is dessigned to help traders and market makers)
This worked thank you!
Do you know how I verify?
How do i change from internally verified to verified
are there any example to create msgsend without the composer sir?
I got a little problem in a js script, when I do
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, {
prefix: "inj",
});
I get the wrong address. I tried without prefix and the cosmos address is correct but when I use the prefix it gives me the wrong injective address. Any ideas guys ?
sirs I'm dumb and new here, are contracts written in typescript or am I missing something'?
i do not use it yet, so i can't help you. but i don't think native token have verification step
i have requested for some text inj via faucet but haven't recieved in a very long time, is the faucet broken?
No, there are no examples for the low level components. In general those cases are expected to be required only by experienced developers, and they would be able to check the Composer code and use it as a guide
do you know if you can add inj custom token to keplr wallet?
it doesnt show inj network wen i go to add custom token
making it not able to add lp to astroport
hmmm
Please read the official documentation. That is clarified there.
i don't use it, either. but will try tomorrow then let you know
can someone send me some test inj
inj18r765lvc3pf975cx0k3derdxl302trjjnpwjgf
or is there a way to request for test tokens from the cli?
@kind flare already mentioned that the team was working to fix the testnet faucet. Please use the search tool before posting questions and avoid re-posting repeated questions
No ideas anyone ? just to make sure
Where are you importing DirectSecp256k1HdWallet from? If it is from cosmjs I would suggest you to use the search tool in Discord and look for fromMnemonic
I'm importing it from @cosmjs/proto-signing, I found something in the search tool, going to look it up thanks for the tip actually
I created via tokenfactory my own native token. I added also into my wallet via add tokens. But i can‘t transfer the tokens to other wallets. Isn‘t possible to send it?
How are you doing executing the transfer? What is the error log? How do you expect anyone to help you without all the proper information?
I tried it with Leap wallet. Is there any way to do it from the terminal with injectived ?
can anyone sell me some test INJ?
how can I send these LP tokens to Mirza.inj
is this the way
@winged maple
I am tryna send you some lp tokens
what wallet can i import my wallet to so that I can see my lp tokens and send you them keplr and trust are being ass
its mirza.inj
action failed?
does anyone have a script to execute a tx programatically
tried like 4 and none of them work
is the network bricked
also jesus there are like 10 different endpoints wtf
where is the hub
ok i converted it
now i transfer via the cli?
I had never seen it before too. Spent my first 100 hours in injective on cli only
Can someone point me to a link of exact instructions on how to deploy on mainnet
Can you send an example how do you select the token which you want to transfer?
PLEASE
I can add from, to, amoun but where can i add the contract address of token which i want to transfer?
But how can we add an contract here 🙂
I would send my own native tokens to other wallet, but don‘t know how. Tried from leap wallet and doesnt work. I would do it from injective tx bank send but don‘t know how can i say here my own token.
just tryna burn this lp or give control to mirza
working on it but if anyone would like to assist that would be great
does anyone know how I can add a pub/priv key via injectived cli?
USER="myuser"
PK="86F36D76A7C8844B63F123439097C692337942AC88A557A0AADF5BC30BFCD387"
yes 12345678 | injectived keys unsafe-import-eth-key $USER $PK
^ @crisp drum
@eager plinth what does the 12345678 here mean
yes 12345678 | injectived keys unsafe-import-eth-key $USER $PK
the default passcode for the user vault in injectived
you can skip the first part and see that will ask you for that passcode
Okay i solved
Alright, when doing the bank send command, i am getting an invalid decimal coin expression error
how should I enter the amount?
@eager plinth
so close
you need to make sure you are entering the amount scaled by the number of decimals
each denom has a different number of decimals
for example: INJ has 18 digits
USDT 6
and so on
here is the lp token
When using the latest token-metadata SDK, leveraging TokenFactory to get token information (name, symbol, etc), Using the factory denom of the token, I keep getting undefined for toToken, toTokenInfo, getFactoryDenomTokenMeta endpoints on both Mainnet and MainnetSentry.
Per the official docs, this should be returning the correct data unless I am missing something?
do i need to do 154919333848295000000factory/inj14ejqjyq8um4p3xfqj74yld5waqljf88f9eneuk/inj147ymh390v733ty3l0t7yv0w3vllnky5vr78xeh as my value
for 154,919,333,848,295 tokens?
yes
here is my command and my error
@eager plinth
bro do you know how to get out of the bank
im currently screwed just trying to burn or lock these lp tokens
theres a big error in ur github repo
using this:
const { getNetworkInfo, Network } = require('@injectivelabs/networks')
then this
var network = getNetworkInfo(Network.Mainnet)
network.rest URL is down ! --> outdated probably.
can you please help me i dont even know what converting to the bank did
@eager plinth
Is it possible to add the injective testnet network in MetaMask? If so any thoughts on what is the correct chain id? I am currently getting this error (in the image in red). If MetaMask is not recommended....which wallet works best with testnet. Thanks!
can someone explain what the converting does in the hub?
Anyone knows what message should i check in injective explorer for adding liquidity ?
guys, I have an error, can someone guide me a bit
did you fixed it?
change network to MainnetSentry
Testnet is currently down do that is more than like your issue. You can see that block are not being generated by going here. https://testnet.explorer.injective.network/blocks/
does anyone know if there's a burn address to burn tokens ?
any idea how to fix that? metadata's first denomination unit must be the one with base denom
What does convert do in the hub??
I converted my LP tokens and now they are gone. not sure how to get them back
how do we burn tokens?
is there a way to fetch all historical transaction from a contract?
this address can be used
inj1sk06e3dyexuq4shw77y3dsv480xv42mqjushky
it is converted from
https://jasbanza.github.io/convert-bech32-address/
using this burn address
terra1sk06e3dyexuq4shw77y3dsv480xv42mq73anxu
https://x.com/generaltsoluna/status/1737605847768076322?s=20
Same concept for ETH ....by using the injective TS library you can convert an ETH address to and INJ address. Therefore here is a INJ burn address = inj1qqqqqqqqqqqqqqqqqqqqqqqqqqqqph4dlwyxj4 or this one inj1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqe2hm49 import { getInjectiveAddress, getEthereumAddress } from '@injectivelabs/sdk-ts' const ethereumAddress = '0x000000000000000000000000000000000000dEaD' const ethereumAddress2 = '0x0000000000000000000000000000000000000000' console.log('Injective address from Ethereum address => ', getInjectiveAddress(ethereumAddress)) console.log('Injective address from Ethereum address => ', getInjectiveAddress(ethereumAddress2))
yo can you dm me?
Hmm after what time i would see mine token at astroport?
Are you adding LP as Concentrated Liquidity ?
how did you fix this?
Error: Cannot find module '@injectivelabs/sdk-ts/dist/client/exchange/ExchangeGrpcClient'
stg the fucking library and docs of this injective shit are so awful
fix ur shit
get better devs
whatever
do something
for custom token should i use CW20 or use the tokenfactory?
yea? how did you add liquidity?
on astro
create a pool
add lp
that was not the hard part lol
lol! what was the hard part?
and do you mint all tokens at once and then just add to lp?
I am strugling with testnet and got to know that testnet is down.
any help will be appreciated.
this guy is scamming for private keys
https://github.com/InjectiveLabs/injective-sdk-ts-example why not working this url?
he literally emails himself your priv key please ban him hes online now @eager plinth
anyone know the value for --fees when uploading my contract to mainnet? testnet hasn't came back online...
https://docs.injective.network/develop/guides/cosmwasm-dapps/Your_first_contract_on_injective/
yes 12345678 | injectived tx wasm store artifacts/my_first_contract.wasm \ --from=$(echo $INJ_ADDRESS) \ --chain-id="injective-1" \ --yes --fees=1000000000000000inj --gas=2000000 \ --node=https://k8s.tm.injective.network:443
so, INJ has 18 decimals, therefore the fees defined there are 0.001.
help join miannet is error
banned
wen functional testnet or useful docs for mainnet?
this is from the "Your first contract on injective" docs, but is for testnet, well gee testnet is down.
So, I change the URL to remove testnet, change the chain-id to injective-1
It doesn't work because the url doesn't exist.
So I go to Native Token Launch on Injective in the docs, copy the url specified there to use testnet commands on mainnet (which only removes the k8s from the prefix).
Txn goes through, and is rejected...
Peak developer experience right there
can someone send me testnet tokens? thanks! inj1yq4dwvnujpr9m8w4m5uq3e8hu0xxnw0eypzr0k
make sure your rpc broadcasting tx matches mainnet
would love to but testnet is down atm, faucet empty too, I'm testing on mainnet lol
@kind flare what does this error mean? net::ERR_INSUFFICIENT_RESOURCES
it might be that, from your msg I assumed rpc url is --node= so I just grabbed the rpc from my wallet (keplr), added :443 at the end after it complained about having no port and sent txn, got a hash but also another failed txn lol
what's your tx?
i usually just do the direct commands from https://github.com/InjectiveLabs/sdk-go
I'll check the repo out
All the details can be found in the docs page
abel gib me testnet inj pls faucet isnt working
and how does one even use those if the docs are all for testnet which has been down what? 48 hours? The only "conversion" text from testnet mentions changing the chain-id and node url, fine. Then the transactions get rejected
is this the type of developer experience and treatment we should expect?
a snobby "RTFM"?
help me
This has been addressed several times in the last 3 days. Look for messages sent by Bojan and you will find the solution to your problem
?
Adding liquidity to a liquidity pool? If that is the case, you need to consider that liquidity pools are not something native in Injective, they are implemented with contracts. Adding liquidity then is a message to execute something on a particular contract (you can find details an examples in the API documentation page)
I running a node join the mainnet,but I use the node rpc,tell me use http2,Is it possible to not use HTTP2?
Check the endpoint you are using. The list of updated endponts can be found in the doc page
I have the error "the pool cannot be created", you didn't have it?
When create a LP
@viscid hound @soft dome @kind flare anyone here?
There is not, and if you receive any address from a DM, the person sending you the message is trying to scam you
Literally takes 5 minutes to solve my issue lol
guys, quick question, there is one guy trying to send the lp tokens to mirza for a shitcoin but it doesn't work from the wallet
I'm trying to help them but no devs are replying sadly.
Please send a message in the #🚨︲report-violation channel
help
If you have an error and you:
- Send a photo of you monitor with the error -> nobody will even try to read that
- Send a screenshot of the error in the terminal -> some people will try to help, with very hash attitude
- Send send the complete error stack as clear text -> all of us will try to help you
this doesn't look right, what are you trying to do?
is inj permissionless or permissioned?
photo is not see?
What's your address?
inj1mcwzdmtfvccrec9nd9qfsq0p6u25d7rcupcmf8
here ser, god bless u and children
warmest regards
best dev
Well, after spending two days answering the exact same questions once and again, with no one of the new meme coins launchers even bothering to use the Discord search tool to try to see if their doubts have been addressed before ... then yes, this is the kind of answers we provide, trying to make people look for the information that we know is there in the docs.
I see you are trying to know how to deploy a meme token on Mainnet. I tried to let you find the info in the docs yourself. But I take your point saying that the experience is not the one you expected. Considering this, I will paste the link to the exact doc page next, but this it the last message you can expect from me.
https://docs.injective.network/develop/guides/cosmwasm-dapps/Cosmwasm_CW20_deployment_guide_Mainnet
following this https://docs.injective.network/develop/guides/cosmwasm-dapps/Your_first_contract_on_injective#upload-the-wasm-contract, I'm in the upload step right now, just changed chain-id and url to mainnet ones because I don't have testnet INJ
I used "http://tm.injective.network:443" as described in the docs "https://docs.injective.network/develop/guides/token_launch/"
What is your issue?
Check DM please!
@topaz seal any idea how can i modify the gas while sending transaction as i keep on getting this ith gas wanted: '50000000' and gas used: '130354'" error
Heres my code
Dm @topaz seal please man
Sent in TX B3B71DA650FFA7B7959C9AEAE42111B1FFBE5F2A1869AEB61FBFC55FD93D86BD
You are a legend man, warmest regards
The error is not the gas you configured, that is actually ok. I think the error is in something in the message (based only on the error message). The error is the first part of the error message, no the last.
use these endpoints instead https://docs.injective.network/develop/public-endpoints/#mainnet
use this as your node https://sentry.tm.injective.network:443
--from=$(echo $INJ_ADDRESS) \
--chain-id="injective-888" \
--yes --fees=1000000000000000inj --gas=2000000 \
--node=https://sentry.tm.injective.network:443```
I see.....thanks
I am actually trying to make a swap initially using the CosmWasm signer like
const swapMsg = {
"swap": {
"offer_asset": {
"info": {
"native_token": {
"denom": "inj"
}
},
"amount": "10000000"
},
"ask_asset_info": {
"token": {
"contract_addr": "peggy0xdAC17F958D2ee523a2206206994597C13D831ec7"
}
},
"belief_price": 0.01,
"max_spread": "0.1",
"to": walletAddress
}
};
console.log("walletAddress", walletAddress)
const executeSwap = await signingClient.execute(
walletAddress,
pairContractAddress,
swapMsg,
"auto", // fee
"" // memo
);
from the astroport docs but keep getting a 'Error: Unsupported type: '/injective.types.v1beta1.EthAccount'' error at the signingClient.execute() so then i try to use the injective sdk
Wonder i can't do a contract interaction using the CosmWasm Client isit? or am i missing something
replace $INJ_ADDRESS w either your key name or your addr. make sure it shows up when you do this since you need a private key injectived keys list | jq
btw who i gotta blow to get testnet inj?
What is the content of that walletAddress variable?
Is it possible to add fees to a token, or rebase, or reflections
inj1ew2z229yt5pg0cdf5numlvmp3eq7tjje5fh23g an inj address which is the sender address
I am certainly going to try but figured i would ask first
What is your address?
inj1yq4dwvnujpr9m8w4m5uq3e8hu0xxnw0eypzr0k thank you ser!
Just the string? And how do you initialized signingClient?
Sent in TX 563E59A2BCAD476146631055791F353427590A256492BA5A77625F421E69F13E
yeap the code to initialize the wallet address and siginingClient are
const privateKeyHash = PrivateKey.fromMnemonic(mnemonic).toPrivateKeyHex()
const wallet = (await InjectiveDirectEthSecp256k1Wallet.fromKey(
Buffer.from(privateKeyHash.slice(2), "hex")
)) as unknown as OfflineDirectSigner;
const walletAddress = (await wallet.getAccounts())[0].address
const signingClient = await SigningCosmWasmClient.connectWithSigner(
rpc,
wallet,
{ gasPrice: GasPrice.fromString("0.01inj") }
)
much appreciated
Heres the complete code @topaz seal using the CosmWasm but getting a 'Error: Unsupported type: '/injective.types.v1beta1.EthAccount'' error
at the signingClient.execute()
I don't think that will work. You are using a TX signer from the cosmos library. You should be using the Injective TS library. Maybe @kind flare can correct me if I am wrong
I see.... yeaa i was suspecting that too so i wrote the script below to use the injective -sdk ts
But i am getting the error message of
Error parsing into type astroport::pair::ExecuteMsg: Invalid type: execute wasm contract failed [!injective!labs/wasmd@v0.40.0-inj/x/wasm/keeper/keeper.go:394] With gas wanted: '50000000' and gas used: '130354
could it be my msg construction is wrong? @topaz seal the contract i am trying to interact are https://github.com/astroport-fi/astroport-core/tree/d9e00f4edf855105b780b83cde975d10470bd0ba/contracts/pair#swap and i am following their json message using the MsgExecuteContract.fromJSON()
Slight bump on this.
How to connect to my node’s private RPC with Metamask?
My node is active atm
But I can’t find any guides to move forward
Dec 21 10
32 BCT-server-34-01 bash[1716494]: panic: minimum commission rate cannot be nil: <nil>
Dec 21 10
32 BCT-server-34-01 bash[1716494]: goroutine 1 [running]:
Dec 21 10
32 BCT-server-34-01 bash[1716494]: github.com/cosmos/cosmos-sdk/x/staking/keeper.Keeper.InitGenesis({{0x3c4fbe0, 0xc001720f40}, {0x3c8fdc0, 0xc0003d5650}, {0x3c7bc00, 0xc0002f85a0}, {0x7f1b343b4f30, 0xc001214000}, {0x3c90ae0, 0xc0002dd1e8}, ...}, ...)
Dec 21 10
32 BCT-server-34-01 bash[1716494]: /root/.go/pkg/mod/github.com/!injective!labs/cosmos-sdk@v0.47.2-inj-4/x/staking/keeper/genesis.go:31 +0x1c48
Dec 21 10
32 BCT-server-34-01 bash[1716494]: github.com/cosmos/cosmos-sdk/x/staking.AppModule.InitGenesis({{{_, }}, , {, }, {, }, {, }}, {{0x3c755d8, ...}, ...}, ...)
Dec 21 10
32 BCT-server-34-01 bash[1716494]: /root/.go/pkg/mod/github.com/!injective!labs/cosmos-sdk@v0.47.2-inj-4/x/staking/module.go:172 +0x145
Dec 21 10
32 BCT-server-34-01 bash[1716494]: github.com/cosmos/cosmos-sdk/types/module.(*Manager).InitGenesis(, {{0x3c755d8, 0xc000056068}, {0x3c90990, 0xc0029e8bc0}, {{0x0, 0x0}, {0xc0029983c0, 0xb}, 0x0, ...}, ...}, ...)
Dec 21 10
32 BCT-server-34-01 bash[1716494]: /root/.go/pkg/mod/github.com/!injective!labs/cosmos-sdk@v0.47.2-inj-4/types/module/module.go:357 +0x433
Dec 21 10
32 BCT-server-34-01 bash[1716494]: github.com/InjectiveLabs/injective-core/injective-chain/app.(*InjectiveApp).InitChainer(, {{0x3c755d8, 0xc000056068}, {0x3c90990, 0xc0029e8bc0}, {{0x0, 0
help me
I think (not sure about this, so I could be wrong) but there seems to be an error in the way you are creating the MsgExecuteContract. Please compare your code with the examples here https://docs.ts.injective.network/core-modules/wasm#msgexecutecontract-transfer
My node is not synchronizing, and there are no error messages. How can I troubleshoot this
@topaz seal
@kind flare
@primal terrace
Could you send us also the command you executed to get that error?
I would suggest posting a question in #🔩・node-operators. All team members that know about nodes pay attention to that channel. Unfortunately that is not my domain
ok. thank you
anyone got testnet INJ they can share or is there any place I can buy it with real INJ?
you know where we can lock or burn LP tokens sers?
actually ya
just send to burn.inj
what is your address?
inj1tvml37kkfymrwmx583ed9eyur3jjq72ftf67rc
ahh i see okk thanks alot!
Btw i am always getting this error using the public mainnet rpc
tried 3 of these which can be found via googling but each of them get the same kind of err msg, or else a 15000ms timeout response
const rpc = 'https://injective-rpc.publicnode.com:443'
const rpc = 'https://sentry.tm.injective.network:443'
const rpc = "https://injective-mainnet-rpc.autostake.com:443"
Any other rpc or its normal that this happen?
thank you
Sent with TX D565309FE4FF8C01078D8BE34FEFD4FEE5495AA44749D600858FE21FDAC33E70
@topaz seal, what is the net::ERR_INSUFFICIENT_RESOURCES error in the JS SDK?
The second you list is the correct one.
Configure a higher timeout height. Consider that each new block happens every 0.8 seconds. If your timeout height is 100 blocks more than curren height, then it means that if your TX is not included in a block after 8 seconds of arriving to a validator, it will be discarded
Sorry, I don't know. We need to ask @kind flare
👍
I was told to ask this here- Is there a way to see historical token balances for my wallet for a specific past block height? thank you
There is a way. Have you checked the API documentation page? Because the details are there.
Did you have any issues following the steps described there?
I got this error when building a dapp
export 'ChainId' (imported as 'ChainId') was not found in '@injectivelabs/ts-types' (possible exports: StreamOperation)
here is my code
// WalletIntegration.js
import React, { useEffect, useState } from 'react';
import { getInjectiveAddress } from '@injectivelabs/sdk-ts'
import { ChainId } from '@injectivelabs/ts-types'
const WalletIntegration = () => {
const [injectiveAddresses, setInjectiveAddresses] = useState([]);
useEffect(() => {
const getKeplr = () => {
if (!window.getOfflineSigner) {
throw new Error('Keplr extension not installed');
}
return window.getOfflineSigner;
};
const fetchData = async () => {
try {
const keplr = getKeplr();
const chainId = ChainId.Mainnet;
await keplr.enable(chainId);
const addresses = await keplr.getAccounts();
setInjectiveAddresses(addresses);
} catch (error) {
console.error('Error fetching wallet data:', error);
}
};
fetchData();
}, []);
return (
<div>
<h2>Wallet Integration</h2>
<p>Injective Addresses:</p>
<ul>
{injectiveAddresses.map((address, index) => (
<li key={index}>{address}</li>
))}
</ul>
</div>
);
};
export default WalletIntegration;
I'm not seeing it, I see current blances and historical orders but not historical balance, could you please point me to it?
help
I see... now after configuring the swap msg
i get an error saying Generic error: No funds sent: execute wasm contract failed from the simulation
any idea? checked the server chat history but seems no ques related about this... do you know?
Please, try to search a little bit in internet before asking questions here: https://api.injective.exchange/#historical-queries
Are you running a node? Please post your question in #🔩・node-operators
No, no idea. But at this level you will need to know the details about the contract you are sending the MsgExecuteContract.
systemctl restart injectived
Oh, ok, you are running your own node. In that case please post a message with the error log in #🔩・node-operators. The team members that know about the node are checking that channel
[Unit]
Description=injectived
[Service]
WorkingDirectory=/usr/bin
ExecStart=/bin/bash -c '/usr/bin/injectived --log-level=error start'
Type=simple
Restart=always
RestartSec=5
User=root
[Install]
WantedBy=multi-user.target
go version?
I can help with creating tokens
May I ask if this is considered successful?
Display active (running)
But there are still errors in the log ("notifying bug: Stopping peer for error")
There is one more question,
How do I link my own RPC?
Guys how much does it cost creating a token using typescript?
I'm tryna send txs with injective-ts and cosmjs, I have trouble deciding how many gas I should put in transaction. Is there any method to track current gasPrice like ethers.js?
is there any good examples of a simple dapp connecting to keply and querying balance and signing a tx? the example on the ts site is eth metamask
need something updated
ill open source what i make if someone can help
What help you need brother
My dms are open if you guys are looking to shill your dapps. I own a VC group looking to invest in new ecosystems
buddy i need some help in creating a token, can i write you in private
10 inj
@crisp drum how you added token factory to kelpr yesterday ?
leap wallet
does everything works out well in both lp token and token factory when transfer ? and what dex you have used ? Thanks
I run a node, how to get chain_stream_endpoint, grpc_explorer_endpoint, grpc_exchange_endpoint?
can you send me burn address?
Read the docs: https://docs.injective.network/develop/tech-concepts/auction_pool/
0x1111111111111111111111111111111111111111111111111111111111111111
