#❓︲dev-questions
1 messages · Page 2 of 1
https://docs.injective.network/develop/tools/injectived/install
Do I really need 1TB of space and 64gb ram?
Yup, need help doing it?
Pls dm
Can anyone create a test token on INJ for me ?
may I ask how to use 1rpc's rpc in the python sdk.
Once I replace grpc_endpoint, an error will be reported.
Does somebody know how to parameter MsgExecuteContractCompat funtion in order to swap inj to CW20 or factory token please ?
some screenshot to illustrate further. is it safe to complete the transaction?thanks.
i am trying to read contract state. im using python package. there is no method for MsgQuery?
i can not find anything even similar. maybe i can use rpc request instead?
I have big question...
Node dont work for make a tx.
Wallet 1 ---> wallet 2
We can't on inj why
hey devs, ive tried sending uLP tokens via wallet and cli and getting errors each way. any tips or way of me verifying im using the correct denom for the tx? error im getting is insufficient balance via cli. thanks!
is the denom for an lp factory/astroportfactory/lpaddress ?
The node I built has only one RPC link. The other links needed in the sdk need to be obtained from the node.
why do you have micro instead of
u
this section is different
denomUnits: [
{
denom: `factory/${injectiveAddress}/u${subdenom}`, /** notice the u */
exponent: 0,
aliases: [`micro${subdenom}`]
},
{
denom: denom,
exponent: 6, /** if you want your token to have 6 decimals */
aliases: [subdenom]
},
]
https://explorer.injective.network/code/212/
I have seen this code id in the mainnet. It's maybe a token, and has 166 instance. Is it a opensource contract
Has anyone run into the error "Error: error unmarshalling: invalid character 'C' looking for beginning of value" when running "injectived tx tokenfactory create-denom"?
Has there ever been periods of abnormally high activity on Injective? Do Fees remain low or do they spike?
Pls check dm
Try checking the node endpoint is living
can anyone help me with this error?
are you on windows or linux?
hey, can anyone help me with sending inj to other address with python sdk?
Are submitting proposal on mainnet require min deposit amount 50inj?
You can read all about it here -https://blog.injective.com/injective-governance-proposal-procedure/
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 solution?
how to resolve this?
Friends I want to create a meme coin on Injective, please help me
Hi Devs, I am planning on minting an nft project using inEVM. My concerns are:
- will we be able to list on current NFT marketplaces and receive royalties still?
- we got staking, tokens, airdrops, planned. Will we be able to execute it together with the NFTs?
Thank you in advance
what do we do about locking liquidity of a token?
it the best method to send to someones burn address?
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.
Testnet nodes have been too inconsistent for me to shoot a demo video during my free time in my timezone for 2 days in a row now...
yes its very off
hey there,
i tried installing injectived librrary on my machine (macOs) but it keeps returning injectived not found i tried both ways of installing it that was given on the docs...
-bash: injectived: command not found
anyone?
Very strange that you cannot derive the correct injective address from a mnemonic
Yet on Celestia you can
wonder what the HD path used, as its different to the cosmos standard
Add to your path /bin etc
does anyone have a working gRPC end point for testnet? gRPC in docs has never worked, and k8 node is down
Are you able to send the LP tokens to another address?
make install
`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-0919 -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"
github.com/InjectiveLabs/injective-core/injective-chain/crypto/ethsecp256k1
....\injective-chain\crypto\ethsecp256k1\ethsecp256k1.go:204:19: undefined: secp256k1.VerifySignature
make: *** [Makefile:59: install] Error 1`
Please help me
Hello.
An exemple or a link to a script that swap a token ?
Thanks
@tardy night if you are here
https://docs.ts.injective.network explore the docs, you'll find a lot of examples
A question about it , i'm currently using this as base to my injective app , but whenever i refresh the page the wallet does reset to no address and i have to connect again every time . Do i have to store the address in the localstorage or there is something else ?
Also is there still some maintenance on testnet ? Cause it works good but every now and then getting net::ERR_FAILED
I already read docs but I couldn't find the function that does it.
Can you help me ?
Thanks
yes, that's application logic and that's how we are doing it on our products
Thank you ! 😉🙏🏻
10 INJ for token factory, mint, update metadata and all? or we need to pay 30 INJ
only 10 to create, nothing else
For that ? Cause i see even testnet explorer is having some issue
When we send inj to a contract adress with this method, we will have some token back , right ?
@tardy night I found another method that works. It was not "msgsend". Anyway, thanks for you help
Is there any other way to connect to the wallet without using window.keplr and private key? Thanks
Or does anyone have a script for simple transfer without using window.keplr and private key? Thanks
is there any article or guide on how to make a coin using typescript?
Is there any other way to bridge from native Injective to $ETH. I have a transaction in progress for 10+ hours. I need another solution in the meantime asap!I used rocket X before bit injective seems to be Grayed out.
https://docs.ts.injective.network/core-modules/token-factory
Is this what you are looking for?
thank you
can you suggest how much liquidity should we add?
$1-10k, it depends
Can you help me create a coin bro, I've tried many things but nothing works, i don't know what to do
did you try this?
do you have a project?
I don't know where to try that, I'd just found it
I want to keep it a secret, I don't wanna be seen as a noob, hope you understand, 😭
Wanna discuss in private chat? I am looking for a partnership
Sure 😁❤️
i can be the developer for the project
Please can anyone help me create a coin I will give $20 USDT
check the private chat bro.
i did mint the token but then my balance still zero, can you lend some hand bro. is there a bug on Injective right now ?
hello, if somebody can please guide me with the right steps how to add on injective chain an existing token from terra chain, i suppose it must be visible on ibc... but i didn't find any documentation how to do it, thanks in advance!
hello, i'm using injective typescript sdk, and using indexerGrpcExplorerApi.fetchBlocksWithTx to fetch block with transactions, my questions is all the txs returned by this api is empty, i'm stuck in this issues for all day, any help from u guys is appriecated ~
Hello, how am I able to read contracts on block explorers? I´m not able to find that out
Yeah i wanna know it too
need for dev DM to disscuss
How can I query the latest block with txs with Python?
Fist time building on injective stuck on a bug. Would love to send someone my code by dm to help me debug as the documentation and words aren’t helping me 😦
Please refer to the API documentation page
Abel I have a problem. Can I dm you?
That question was recently answered in this same channel #❓︲dev-questions message
Please always search before posting a question.
That question was recently answered in this same channel #❓︲dev-questions message
Please always search before posting a question.
What is the problem?
Abel, I have a working script, but currently it only works with the const network = getNetworkInfo(Network.MainnetSentry);
But i dont know how to connect to a private RPC i have
I've been trying all day long to no avail
since i cant use that getNetworkInfo function for custom rpcs
may I ask how to use 1rpc's rpc in the python sdk.
Once I replace grpc_endpoint, an error will be reported.
if user
If I use the default rpc, everything works fine and can be sent.
But you can always create a your own NetworkEndpoints configuration, using the URLs of your private node
i cant find example code sir
I think our problem is the same
You have to create your own instance of Network, configured properly for the node you intend to use. You can use Network.custom() to create your own Network instance (you need to pass all the mandatory parameters, you can check that in the SDK)
dm
If you check the implementation of getNetworkInfo, or look for references to NetworkEndpoints in the TS SDK code you will see plenty of examples (the SDK is open source, anyone can see the code)
thank you
Any examples? What are the mandatory parameters of inj?
`Network.mainnet(), Network.testnet() and Network.devnet() functions all create instances of Network with different parameters. You can use that as an example
So why can't I directly modify the RPC of Network.mainnet()?
curl --location --request GET "https://pisco-lcd.terra.dev/wasm/contract/terra195m6n5xq4rkjy47fn5y3s08tfmj3ryknj55jqvgq2y55zul9myzsgy06hk/smart/{HEX_ENCODED_JSON}?encoding=hex"
can i use this on inj
you can, but that is not the way to go. The configurations for mainnet, testnet and devnet might not be the correct ones for your own node. I still suggest you using Network.custom() but feel free to ignore my suggestion
I don't know what that is
cosmos request
OK, I'll try Network.custom(). thank you very much.
I am not aware of any MsgQuery. All available messages are described in the API documentation page
afaik there is no method to read chain data form a contract in python package
this cant be true right
These are the messages to interact with contracts https://api.injective.exchange/#wasm
i see there is a single write method
but i would like to read chain data with arbitrary json
https://docs.ts.injective.network/querying/querying-chain/querying-chain-wasm
i see its available for ts
That functionality has not been added to Python SDK yet
can i send cw20 tokens from terra to injective?
hello if i want to send inj from binance to ninji wallet do i have to fill the MEMO and if yes what do i fill it ?
@lean parcel sorry for tagging but i am a little in a hurry
You dont need memo when withdrawing to your own wallet address
ok thank you
even if it is a new wallet right ?
@lean parcel
Yes, if it is your own wallet you dont need memo, only when required by a centralized exchange
<@&739555074879258704> Any dev available to explain me how to swap with a js script please ?
https://docs.ts.injective.network/core-modules/wasm#msgexecutecontractcompact
https://github.com/InjectiveLabs/swap-contract
I'll go read it if any trouble can i come back to you ? thanks 🙂
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 apperently cant send my created token to other wallet
can only send INJ,
anyone can help with it i have 100$ reward
I think you can not do it bro, only from helixapp can do that, I think i read that soemwhere
@tardy night Its it working with factory tokens ?
yes sir, the unverified one
i added the LP, trading was fine, just can't send to other people, also the LP token
is there any source to it?
how i can host and launch by self this rpc or nodes?
Is it possible to add an mainnet wallet only with the private key or mnemonic with the command: injectived keys import <name> <file> ?
Actually i can import an account with the Tendermint file inside the injectived , but it can't export my web wallet key in the Tendermint format
i want it for get private rpc which will not drop on hype mint? i need host node with system like this?
You can check #📚・node-resources or ask in #🔩・node-operators
Hello 0 rpc public works on INj ? Why lol
it does
if i create token using typescript still i need to pay 10 inj or what?
Hello, any LP and token locker on Injective?
yes, please use keplr directly, send the funds to another address do IBC bridge and send back
i think so
not yet
ctrl+f5 and try again
import {
MsgBroadcasterWithPk,
MsgCreateDenom,
} from "@injectivelabs/sdk-ts";
yoooo who wrote these stinking docs
why do none of the code samples work, all importing shit from the wrong modules
does anyone have a working sample for the msgBroadcasterWithPk
@wary kestrel
Did you got an assistant about this from the group admin yet?
Am also having the same problem
From injective explorer , testnet is down i guess?
Hello, is there a way to intereact with liquidity pair true scanner?
F
??
one lil question as testnet is down and i need to move to mainnet to test my code
what is the mainnet equilavent to this code snippet?
const txService = new TxGrpcClient(network.grpc)
hey if want to start making a meme token on injective , how do i do that? i only took 1 cs course in college as disclaimer
Could anyone here help me with this
Usually after 2/3 minuts , but now testnet is being maintened so it's not working properly
Thanks
Are you adding LP as constant or concentrated LQ?
Tried bridging some funds over from Sol to Injective using injective wormhole and lea wallet. cant seem to find how to claim the funds
guys can you help with this one
signature verification failed; please verify account number (0) and chain-id
njectived tx wasm store /var/artifacts/cw20_base.wasm
--from=inj14zw0njuejh9us94wdhg3msptzxpcjpq0anampd
--chain-id="injective-888"
--yes --gas-prices=500000000inj --gas=20000000
--node=https://testnet.tm.injective.network:443
why are requests sent through https for testnet but http for mainnet?
bridge is amazingly heinous
you need to have INJ on injective chain to use it
also, you'll receive bridged solana, not INJ. Truly a great bridge to get started
https://docs.injective.network/develop/guides/token_launch/
"
tip
The commands below refer to testnet. In order to use mainnet, make the following changes to all commands:
injective-888 > injective-1
https://testnet.tm.injective.network:443 > http://tm.injective.network:443
"
WHY OH WHY does mainnet use http?
Shite, I figured because it was powered by wormhole it would be half decent.
that makes 2 of us lol
There was no USDC option, only Sol or Pyth lol.
I have tried the faucet already and was rejected.
send wallet I'll send you funds to get your solana into your inj wallet
The transaction shows its arrived but the HUB wont reconize the transaction is even there
yea go to your solana wallet, grab the txn hash from bridging in solana
go to bottom of bridge, click claim wormhole txn, sleect solana, paste hash
but you need inj at that point to redeem them
are you doing dev stuff or just user?
.001
inj14507w2t8552nqndxdx563x7uuly2qvyjamwyfm
can someone send me testnet inj? inj1yq4dwvnujpr9m8w4m5uq3e8hu0xxnw0eypzr0k
My man... thank you! This allowed it to be searched and then it loaded my wallet and started redemtion. Appreciate you!
so what is burn address?
np bro, had the same happen to me and I had to go through a cex
if you find out how to convert that SOL to INJ please let me know
Hienous is right lol jesus
Sers please use #🆘︲help-and-support-old if you have non-developer question
Sorry @lament tendon, what do you mean with "scanner"?
The code is the same. When creating the Network instance select MainnetSentry
Please check the enspoints page in the documentation. The endpoint you are using to run the command is not the correct one
thank you, im making a simple telegram token deployer bot to help out everyone here
Great, excellent idea. Keep it going!
hi
I am developing a code to send INJ to another address. What should I put in the denom here besides INJ?
msg = composer.MsgSend(
from_address=address.to_acc_bech32(),
to_address=receiver_address,
amount=int(amount_inj * 1e6), # 0.001 INJ = 1000 (1 INJ = 1e6)
denom="inj"
)
If you run it as is, you'll get an error. What is the denom of INJ
Is there a max gas fee limit when sending a transaction?
yes
Thank you, do you know what it is? I try to find in the docs but can't find it
Can I install injectived on Windows? or does it require me to use UNIX?
I cannot start my node,need some help
you can ask in #🔩・node-operators
thx
hello,i'm deploying cw contract on injective, and got error return as follows, need some help, plz
your kindly help is appreciated ~
Guys i need some help regarding the following:
guys I bridged solana to Inj using wormhole. However I now have sol on inj instead of inj. How do I convert my sol to inj now
You can start with this docs https://docs.injective.network/learn
After download injectived
Nothing happened
That’s where my confusion started
How do I proceed after downloading injectived
Which software is this
I don’t think is rust
Is the testnet down? I'd need it to make the video demo for the Hackaton
anyone knows how to launch token in inj? willing to pay
Same here
I don't know where is the platform to create or make a contract
I’m literally confused too man
Can someone help out?
Can we use remix or is there any other way?
I tihnk, remix only good for eth and avax
Yeah
Who can i ask about token factory?
Where can I find injective RPCs
Check on chain registry repo , you should find there everything you need
This error was reported during the transaction, but the transaction was successful
await signingClient.sendTokens() this function
how to send lp pair tokens? leap wallet or?
keplr
Hi guys, I have this js script to deploy a token (testing directly on mainnet because faucet doesn't work) :
const { PrivateKey } = require("@injectivelabs/sdk-ts");
const {
assertIsBroadcastTxSuccess,
SigningCosmWasmClient,
} = require("@cosmjs/cosmwasm-stargate");
const fs = require("fs");
require("dotenv").config();
const rpcEndpoint = "https://sentry.tm.injective.network:443"; // Injective RPC endpoint (TESTNET: https://testnet.sentry.tm.injective.network:443)
const walletMnemonic = process.env.MNEMONIC; // Replace with your wallet's mnemonic
const path = require("path");
const contractWasmPath = path.join(__dirname, "cw20_base.wasm");
async function main() {
const privateKey = PrivateKey.fromMnemonic(walletMnemonic);
// Get the associated Injective address
const injectiveAddress = privateKey.toAddress();
const publicKey = privateKey.toPublicKey();
// Get the public key in a compressed format (33 bytes)
const rawPublicKey = publicKey.toPubKeyBytes();
// Construct the account data object
const account = {
algo: "secp256k1", // This is the algorithm used by Injective's SDK for the keys
pubkey: rawPublicKey,
address: injectiveAddress,
};
const gasPrice = "0.025uinj";
const client = await SigningCosmWasmClient.connectWithSigner(
rpcEndpoint,
account.address,
{ gasPrice: gasPrice }
);
console.log(client);
const wasmCode = fs.readFileSync(contractWasmPath);
const uploadReceipt = await client.upload(account.address, wasmCode, "auto");
assertIsBroadcastTxSuccess(uploadReceipt);
}
main().catch(console.error);
The script crashes at the upload with this trace :
TypeError: this.signer.getAccounts is not a function
at SigningCosmWasmClient.simulate (D:\Dev\Repositories\token-deployer\node_modules\@cosmjs\cosmwasm-stargate\build\signingcosmwasmclient.js:72:54)
at SigningCosmWasmClient.signAndBroadcast (D:\Dev\Repositories\token-deployer\node_modules\@cosmjs\cosmwasm-stargate\build\signingcosmwasmclient.js:318:46)
at SigningCosmWasmClient.upload (D:\Dev\Repositories\token-deployer\node_modules\@cosmjs\cosmwasm-stargate\build\signingcosmwasmclient.js:96:35)
at main (D:\Dev\Repositories\token-deployer\src\index.js:42:38)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
all my dependencies are updated to the latest version
Any ideas why this is happening ?
Did you succeed, brother
sending inj from a wallet to another doesnt require memo right ?
How to multisend address?
Hi guys, my node is running, I have downloaded last snapshot from AWS,but I cant connect to peers so I cant sync my node.
What to do? Please help
try ask #🔩・node-operators
what is the difference between wasm and wasmx ? i see some swaps on coinhall with wasm modul and some with wasmx
what's injective chain id ?
chain-id=injective-1
chain-id - injective-888
tyvm
The denom of INJ is inj
What command did you execute? Have you searched for the error message using the search tool here in Discord?
Does not seem as a dev-question. Please move your question to the #🆘︲help-and-support-old channel
All endpoints (for mainnet and testnet) are listed in the documentation page
Your script uses Stargate components to sign transactions. You should contact Startgate support team.
You should post your question in #🔩・node-operators
How to specify injective-py to only use rpc? ?
disable grpc
I have asked but no one answered me
i dont take faucet inj testnet
What do you mean? What are you trying to do? What do you think it is the difference between RPC and gRPC?
The team members that know about the node do not pay attention to this channel. I don't think you will get any response here.
What's up devs ya'll good? Peace to everyone
hi was trying to bridge from inj to eth using injective hub and attempted to claim but keep getting error
no need to claim from INJ > ETH, funds will show up in your wallet eventually
bridges are taking longer than expected though 30 mins to -2 hours
ohhh ok ty appreciaate the info
hello friend , id love to join that group . is it on ?
Hello, seems the Cascade testing RPC URL(inSVM) is down/not working. In the docs it is mentioned to be https://api.injective.eclipsenetwork.xyz:8899/ but is down. For now we are just using the general Eclipse devnet to test it : https://staging-rpc.dev.eclipsenetwork.xyz .
Is there any other RPC URL to work on devnet with the specific Injective RPC endpoint?
its not done yet
yo how do i transfer LP tokensssssss
any testnet dex for testing
guys how do we burn LP tokens? do i gotta do it on CLI or is there a burn address where i can shoot it to?
How much does it cost to make a coin token?
where to get INJ testnet token?
Does INJ have an online dev too llike ethereum has remix?
Try to use leap, if Keplr doesn’t work
Which cmd is this please
Guys for address like factory/inj,,,,,,/TOKENNAME does this means that its a token from the token launcher? if thats the case how about token with inj........??
we need to wait for adapter to be funded
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: '180692'
go to the hub and click on the convert to bank button
i made it all happen
took lots of time
Error: duplicate denomination unit factory are we sure that this error means a duplicate denom ? i've tried a lot of name and still get this error
Hi
submit proposal command to upload binary file to mainnet not working to me
Someone facing same issue ?
!faucets
Receive a small amount of INJ, enough to make 1-2 transactions.
- https://inj.supply/
- https://stakely.io/en/faucet/injective-protocol
- https://bwarelabs.com/faucets/injective-mainnet
For Testnet use: https://testnet.faucet.injective.network/
Any devs in here who can help build a smart contract?
I will dm you
I cant dm you
I do not know much about the contracts on this chain
Need one simlair to our contract on ETH
I created native token on mainnet. Why not show on explorer?
This has been already discussed many times in the past days. Please use the Discord search tool before posting a question
#🚀・dev-support message
I created native token on mainnet. How to add it to wallet?
I am unable to deploy on injective (inEVM).I tried both remix and hardhat but still the same. I followed this guide too ,it's the same issue.
https://calderaxyz.gitbook.io/injective-documentation/getting-started/deploy-on-inevm
Is it not possible to deploy Solidity on injective?
please get in touch with Caldera support team
I cant find this tx, i used https://hub.injective.network/
There is no wormhole tx to claim, im not sure where this 25 sol has gone and cant access it
i was trying to bridge from sol to inj via metamask and phantom
@broken jacinth
Hey forward this in #🆘︲help-and-support-old
Hi All #💬︲hackers-chat , We are porting the financial instruments protocol injective_financial_instruments to Injective for the hackathon. Where can we find the Injective starters (run on linux, run smart contract and connect to block) to script them in Bash for our purpose? Thanks
How much INJ do I need to deploy smart contract on mainnet? I have 1 INJ, but I couldn't deploy simple cw20 contract on mainnet
I got this error message
Error: proposals require a minDepositAmount of at least: 50000000000000000000: insufficient funds
this is 50 INJ. so do I need 50 INJ to depist and submit proposal to deploy smart contract on mainnet?
It's crazy
or I am making some mistakes myself?
this is my command
injectived tx gov submit-proposal wasm-store /var/artifacts/my_first_contract.wasm \
--title "Title of proposal - Upload contract" \
--description "Description" \
--instantiate-everybody true \
--deposit=1000000000000000000inj \
--run-as inj1myp2jnfel5s0...tjmdfz9efjqsduwe \
--gas=10000000 \
--chain-id=injective-1 \
--broadcast-mode=sync \
--yes \
--from testuser \
--gas-prices=500000000inj
what's wrong? pls help me @broken jacinth
I need help about this too
I’m having the same problem
How can i deploy a smart contract on mainnet bypassing proposal ?
@hybrid finch , @weak gyro , @slim eagle We can create a bash script for standard use in cold device Linux and for our business purpose. Where can we find the Injective starters? We will publish the code.Thanks
Do you mean this link?
https://docs.injective.network/develop/guides/cosmwasm-dapps/Your_first_contract_on_injective/
Just follow the error message and you will be fine (I don't think there is any point in asking here is the error message is telling the truth)
Perfect,thanks @hybrid finch , We will soon publish the code to generate Ubuntu Linux cold device for the regulation and negotiation protocol of financial instruments.
so i need to have 50 injective in my wallet in order to deploy ?
@timid nexus
Yes!
Correct
but here, as you can see, fee = gas * gas price so fee would be 10000000 * 500000000inj = 5000000000000000 inj, 0.005INJ @broken jacinth right?
am I wrong?
The gas you pay is one thing, the deposit is other thing. They are unrelated concepts
I see. this means that I can get my deposited amount back once deposit period is ended
?
@forest flint
How can i bridge a native injective token, using the token factory, to ethereum or arbitrum. Injective hub wont allow me to enter in a custom address, is it possible to ask to get the token (native to injective) added to injective hub?
again this is using the token factory
i think you should be able to do so on wormhole, just by adding the contract address from the explorer and bridging
Can someone please send testnet INJ please?
yes. what's your inj address
inj189hl8wqhf89r2l6x9arhtj2n8zx73cmsmts6pc
Thanks sir
How much is enough to deploy on testnet?
damn it doesnt work
looks like wormhole doesnt like the
factory/inj1xtel2knkt8hmc9dnzpjz6kdmacgcfmlv5f308w/sometoken address
Sir?
is it better to launch a cw20 token over a token factory (as recomended by the docs) token for things like bridging?
@broken jacinth follow the docs, there is no option for token icon. How to do that?
I would be use the API (Python) but i got an issue with Bank/MsgSend!
with
from pyinjective.constant import GAS_FEE_BUFFER_AMOUNT, GAS_PRICE
Error: cannot import name GAS_FEE_BUFFER_AMOUNT, GAS_PRICE from pyinjective.constant
Can anyone help with that?
The documentation is clear: you have to update the list of tokens as explained here https://docs.ts.injective.network/readme/token-metadata/denom-client
You are using an example meant to run with the SDK verion 1.0 (that is only valid for testnet for the time being) with a differnt version of the SDK. I recommend you to use the examples in the Python SDK repository, in the tag for the version you are using
HI, Are there call limit to public RPC endpoint?
I always get folowing message "timeout of 15000ms exceeded"
I created PR to submit token info. How long to be merged?
I used wormhole for the first time and bridged USDC from Solana Network to Injective. Now I have to dig deal to realize I have USDCso (Which I canverted to BANK) but now I can not firgure out how to trade it, swap it, bridge it out, or anything for that matter. What can I do to get this back?
You should bridge it back and swap to USDT and then bridge USDT back to injective, cause USDC have no liquidity in Injective's ecosystem
We are working to improve, but yes for now there is no liquidity
Well thats the thing, I cant even see the USDC to bridge back on any of the platforms I have tried
Sorry, I just saw the no liquidity thing, that means I cant get the funds out at all?
You can bridge them back
but you need manually add the contract on the Wormhole bridge
to bridge them back
Where do I find the correct address? I have seen a number of different USDC on the following informative link - https://github.com/wormhole-foundation/wormhole-token-list/blob/main/content/dest_solana.md - but none of these are working - in this case is the new source chain INJECTIVE and the Destination Chain is SOL or do I need to choose a differnt capatible destination chain as well that accepts this USDCso? Thank you for your help
If you can create a token on Injective
Please indicate
I’ll pay
Is creating a token only possible on Linux
How did you do it
Was it on Linux?
I am following the tutorial from here https://docs.injective.network/develop/guides/token_launch/
I managed to create an account, i get test INJ from the faucet and the command with create tokenfactory denom works, however when I want to submit token metadata, the transaction fails with the message "failed to execute message; message index: 0: unauthorized account" . I tried with the exact same parameters as there and also with changed name description etc. Do you know what i might be missing out ?
I'm trying to upload a wasm contract on Inj using a Node.js script, but apparently the cosmjs library isn't compatible with injective account type since I'm getting this error during the upload:
Error: Unsupported type: '/injective.types.v1beta1.EthAccount'
Does the InjectiveLabs/injective-ts library allow me to upload smart contracts on the Injective network?
Hey! Is the testnet RPC endpoint down now?
Error: error in json rpc client, with http response metadata: (Status: 503 Service Temporarily Unavailable, Protocol HTTP/1.1). error unmarshalling: invalid character '<' looking for beginning of value
Did you set an admin? If not that'd explain it, you can only change metadata if you're the admin of the token.
yes, CosmJS is not compatible with Injective at the moment. You'd have to use sdk-ts.
https://docs.injective.network/develop/public-endpoints
Please, use these endpoints
Is there an injectived binary compatible with ARM architecture?
Yes, i used an incorrect account for deployment. thank you !
I have another question. How can I deploy a token on INJ blockchain with custom features, such as transfer taxes, rewards for holders, etc, similar to popular features from other blockchains
I've a dumb js question. Running the follow gives me error
import { PrivateKey } from "@injectivelabs/sdk-ts";
PrivateKey.generate();
class PrivateKey {
constructor(wallet) {
this.wallet = wallet;
}
/**
* Generate new private key with random mnemonic phrase
* @returns { privateKey: PrivateKey, mnemonic: string }
*/
static generate() {
console.log('bip39_1', {
bip39_1
})
const mnemonic = bip39_1.default.generateMnemonic();
const privateKey = PrivateKey.fromMnemonic(mnemonic);
return {
privateKey,
mnemonic,
};
}
}
TypeError: Cannot read properties of undefined (reading 'generateMnemonic'). bip39_1.default is undefined
how to fix this when I check my token in explorer?
Minter address has the ability to increase supply
so that I can't mint supply anymore
Thank you.👍
what is the documentation I need to read to create a token in injective?
Please merge Pull Request 328, thanks !
Hello
is this a Linux power? Can it be done on Windows or MacOS?
Am new here
you can do it through linux or mac, not windows
what do I have to do?
Error Log
failed to execute message; message index: 0: unauthorized account
Anyone managed to run sdk-ts in nodejs?
Is there any way to call the txs like an Event on EVM chain?
I would be print anything after any tx happened on a contract or address. Any ideas?
@lean parcel
Do I really need 1t storage space to get injectived
Wsl??
Can anyone help me resolve this issue?
I have it, what do I need to do? what syntax do I need to use?
which wallet will show my inj balance directly?? Don't think metmask has that
Can see all the supported wallets once you try to connect on the hub https://hub.injective.network/
hello i just wanna ask kindly question how to disable minting tokens in CA
can anyone help ?
yeah
oh i didnt mean that
i can talk with ca owner XD
but its ergant if someone helps i appreciate that
nah thank you
thank you bro
not sure that's possible
so every devs can mint tokens
after launch ?
i really need help about that
will have to wait till a dev sees this and help you
okey thank you
Trying to learn how to interact with smart contracts without an interface. Where should I start?
Does injective have ABI (Application Binary Interface)?
Could anyone explain what the Injective CW20 Adapter smart contract does? https://explorer.injective.network/contract/inj14ejqjyq8um4p3xfqj74yld5waqljf88f9eneuk/
Or where I can find its source code?
how to renounce CA ?
can aynone helps
@obsidian moth im sorry but its ergant ser can you help
Which network should i use for Main and Test. K8s keep giving 503
How do i request Faucet for Test net? I've tried these but nothing comes through
https://inj.supply/
https://testnet.faucet.injective.network/
You will get it in a few mins
Nah I requested hours ago
https://docs.ts.injective.network/readme/networks Why doesn't the document explain network.custom? @broken jacinth
Hi sir, can i dm u? I have problem about rpc custom too
check the docs ... you set msgadmin to an empty string
I guess that's how it's done
I have a token but can't access the CA
the way things work here are kinda different
welp this returns an erro
node:internal/process/esm_loader:97
internalBinding('errors').triggerUncaughtException(
^
Error: Invalid address (empty address string is not allowed): invalid address
at TxGrpcApi.<anonymous> (C:\Users\DELL\Desktop\injective\node_modules@injectivelabs\sdk-ts\dist\cjs\core\modules\tx\api\TxGrpcApi.js:127:65)
at Generator.next (<anonymous>)
at fulfilled (C:\Users\DELL\Desktop\injective\node_modules@injectivelabs\sdk-ts\dist\cjs\core\modules\tx\api\TxGrpcApi.js:5:58)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
type: 'chain-error',
code: -1,
originalMessage: 'Invalid address (empty address string is not allowed): invalid address',
name: 'TransactionException',
errorClass: 'TransactionException',
context: undefined,
contextModule: 'sdk',
contextCode: 7
}
Am trying to upload the wasm contract but I keep getting an error, mind you have successfully upload before and deploy a cw20 token to the testnet. Trying to deploy another before moving to mainnet that is when I got stuck, have been trying every other solution but just can get to fix it
the hard part is actually sending a execute msg using CLI
I'm using the ts sdk
if its possible can you help me in dm
ANyone having issues with wormhole today cant reddem my SOL bridged over to INJ today wont recognize transaction
failed to execute message; message index: 1: Overflow: Cannot Sub with 0 and 200000000: execute wasm contract failed [!injective!labs/wasmd@v0.40.0-inj/x/wasm/keeper/keeper.go:394] With gas wanted: '50000000' and gas used: '298683'
Kindly get help from support
wheres support ?
Please have patience until a dev responds
Its Christmass days, please take this into account
Hello. Is there a way to deploy a token on the INJ blockchain, that has more advanced features, such as transfer tax, holder rewards etc ?
Also please forward this to #🆘︲help-and-support-old
Hi, how can i get enough token to submit a code upload proposal on testnet? The tokens provided by the faucet is not enough.
Due to insufficient fund I am getting below error:
Error: rpc error: code = Unknown desc = [reason:"insufficient funds" metadata:{key:"ABCICode" value:"5"} metadata:{key:"Codespace" value:"sdk"}]: rpc error: code = Unknown desc = failed to execute message; message index: 0: spendable balance 19919650130000000000inj is smaller than 50000000000000000000inj: insufficient funds [!injective!labs/cosmos-sdk@v0.47.3-inj-9/x/bank/keeper/send.go:284] With gas wanted: '50000000' and gas used: '30637625' : unknown request
You need test tokens?
Try: https://bwarelabs.com/faucets/injective-testnet
It's empty rn but you can try tomorrow.
Good day Devs, I have been playing with Injective, staking a bit on Black panther etc. I have somehow got some factor tokens, I have no idea what or what to do with them. Is it possible to convert them back? I can send a screenshots if that help. Thanks
Make sure those tokens are not the reward point tokens for black panther.
Sure Lahn, I'll get it now
Here we go
inj1k739uxvvaajekmhq7umfsf4xu5qdn2cweq6pse
My balance went down a bit....I don't have many.....and I don't know how I did it
Oh, are you trading perp futures?
Those tokens are related to that.
As far as I know only spot....but I could have accidentally
You can forward your question to #🆘︲help-and-support-old as it's not development related.
So I should to to perp and cancel anything open?
I dis try and they told me to come here
Yeah, you made seranium misunderstand.
So I'll go back there, thanks Lahn
there is any nft marketplace dApps example somewhere guys ?
The NFT marketplace that empowers artists and bridges physical & digital art on the Cosmos ecosystem.
i mean, in code, like the DEX injective example
You mean an open source nft market place?
yes exactly, sorry
I am not sure if there is anything like that for Injective.
I was wondering if I need to create smart contract for it, or just the TS SDK is enough
to apply some sell fees
Yeah sc is needed afaik
can someone walk me through setting token metadata on inj?
Am trying to upload the wasm contract but I keep getting an error. Mind you have successfully uploaded before and have deploy a cw20 token to testnet. Trying to re-deploy another cw20 testnet before deploying it to mainnet that is when I got stuck, have been trying every solution but just can get to fix it
what is CA ?
Thanks. Do you know in which UTC timezone it starts?
UTC +00:00 I think.
Should refill in a while.
Check this for correct endpoints: https://docs.injective.network/develop/public-endpoints
What were you running when the error happened?
You can implement your own CW20 contract to include the extra functionality
Is that the complete command? It seems like there are parts missing
hey
i am working with injectived. I know how to get the latest Tx of a normal account.
- injectived query account "address"
as a response i get the balance and the sequence number - injectived query tx "address"/"sqeuence"
as a response i get the latest tx and all the information regarding that tx
my question is if i can do a similar thing with a contract, or how to achieve something like that when querying a contract. Since there is no sequence on a contract i dont how to fetch the latest tx without the hash
!faucets
Receive a small amount of INJ, enough to make 1-2 transactions.
- https://inj.supply/
- https://stakely.io/en/faucet/injective-protocol
- https://bwarelabs.com/faucets/injective-mainnet
For Testnet use: https://testnet.faucet.injective.network/
Yes, As I said earlier have successfully deployed to testnet once. Trying to deploy another that is when I keep getting this error
Can u use injectivized on a windows pc?
To interact with smart contracts manually, I need the node cli right?
To work with injective typescript I first need injectivized installed right?
no
well yes
i have it running via a visual studio code in combination with a linux distro
here is a quick tutorial. https://code.visualstudio.com/docs/remote/wsl-tutorial
then install injectived on it and you are good to go
and to interact with a smart contract
can i do it through typescript
using my keplr wallet
?
on windows in visual studio code
i think so ^^ i have no clue tough how to set up a typescript environment and how to compile a ts successfully. I just use injectived at the moment and most things can be done via that.
Thank you
My pc is not strong enoiugh for injetivized, should i than work through a hired server or something?
you can import your wallet there, and interact with contracts via the wasm modul.
your pc is not strong enough to run a node but you dont need to run a node
you can install injectived and just use the public endpoints instead of running a node yourself, that should be possible even with the worst computer on the earth
didnt know, thank you
you are welcome
So I just want to be able to interact with smart contracts directly without being dependant on the ui on their website.
Can that be done with injectivized alone?
LIke interact to swap on astroport for example
yes sir! with the wasm or the wasmx moduls
Great! What language will this be in?
And where do I have a good place to start cuz have been finding a lot of different documentation
I get the same error
the best documentation is actually available for Typescript
how to fix "Error: error unmarshalling: invalid character '<' looking for beginning of value" ?
I am following https://docs.injective.network/develop/guides/cosmwasm-dapps/Your_first_contract_on_injective/#prerequisites
To interact with astrport, do i have to make my own smart contract?
So this guide wouldnt be for me?
no, I am asking my own question
Since I just want to interact directly with other smart contracts but dont want to make my own
no this is just for the smart contract creators
@craggy pine do you know why I get that error unmarshalling, and how to debug and fix it?
https://docs.ts.injective.network/
this is the documentation you would need if you want to use TS. Check Core Moduls -> wasm
is there something similar but in Python?
How do I connect my keplr wallet to that code
Cuz its in that code ive been trying for some time now
But I feel im missing some initial steps
Like dont I need to connect with the injective chain first
never have done that. if i want to interact via code then i need to restore the wallet with injectived, so you have the keys that will enable you to make further actions
u run ur own node ?
Cuz how can I use keplr node
if there is then i havent found it.
no, my pc is to weak to run a node aswell
did u interact with astroport swap
through ur way
Otherwise I might need to try it with injectivized and stop trying typescript maybe
cuz than I know it atleast worked for u already
have you been able to compile those typescripts of yours ? setting up the whole environmet and stuff ?
yeah i have been able to, but i would rather do it with typescript.
I think, just dont know which steps to follow
Cuz now for example I got the wasm code
and you can compile it ?
But dont know how to connect to the chain itself, if that is something that needs to be done seperately
if yes the would be nice if you help me 😄
How I can try
If I get it working for sure
https://docs.ts.injective.network/wallet/wallet-connections wallet connections are in there aswell sir
So I need to do these first
In the same file than?
And than do the wasm function after?
tbh, i dont know for sure.As i said i have no clue how to interact with the chain fully via TS
guys, how to fix this error, trying to deploy the tutorial contract?
Error: error unmarshalling: invalid character '<' looking for beginning of value
Please check if using the account TXs query (https://api.injective.exchange/#injectiveexplorerrpc-accounttxs) with the contract address provides you the information you are looking for
Could you send the full command and the full error result in clear text please, instead of a snapshot image?
The app is called injectived, not injectivized. And you don't need it to use the TS SDK
`import asyncio
import logging
from pyinjective.async_client import AsyncClient
from pyinjective.composer import Composer
from pyinjective.core.network import Network
async def main() -> None:
# select network: local, testnet, mainnet
network = Network.mainnet()
client = AsyncClient(network)
composer = Composer(network=network.string())
address = "contractaddress"
type = "injective.wasmx.v1.MsgExecuteContractCompat"
limit = 2
transactions_response = await client.get_account_txs(address=address, type=type, limit=limit)
print(transactions_response)
first_transaction_messages = composer.UnpackTransactionMessages(transaction=transactions_response.data[0])
print(first_transaction_messages)
first_message = first_transaction_messages[0]
print(first_message)
if name == 'main':
logging.basicConfig(level=logging.INFO)
asyncio.get_event_loop().run_until_complete(main())`
i get a correct result if i execute it like that. I get an Error though
KeyError: '/injective.wasmx.v1.MsgExecuteContractCompat'
Did it work?
I don't think the UnpackTransactionMessages function is prepared to unpack the MsgExecuteContractCompat. That must be the error you see. Do you need to unpack the transaction? If that is the case you might need to write new code for now
it worked perfectly, got the last 2 Transactions with "injective.wasmx.v1.MsgExecuteContractCompat" with full details
well i needed to change that part of the sample to be able to run the code
Well done Bubbah
ahh well okay, i just deleted that part with unpacking transaction messages
If i already created a token as denom is all i need to do i add liquidity through atroport?
That will depend on what your goal is. What is the reason for you to create the token?
just to test it out and see if it works.. never done it before
and is the SDK all that's needed to create the token? anything pointers?
You can create the token using only the TS SDK, yes. You can also use the injectived CLI
To I use the Injectived CLI are the computer specs mandatory?
got the answer from searching
thank you merry christmas
If i use this https://github.com/armandsalle/vite-typescript-webflow/blob/main/HowToUse_TS_EN.md
will I be able to host the code and use it with a front end service like webflow? would this work?
Not sure. I am not familiarized with that project
i need a rpc for inj test net
gooot it
What do you mean with "I need an RPC"? RPC is a protocol, what does it mean that you need a protocol?
my inj test net rpc in keplr doesnt work
That does not sound as a question for the dev-questions channel. I would suggest you asking in the #🆘︲help-and-support-old channel
Am i right that the code should be written in typescript, than compiled to javascript and its the javascript u run with nodejs in the end?
Sorry, that question is out of the scope of explaining Injective tools and ecosystem. It is a question about programming with typescript/javascript.
Ok, I know it are dumb questions but im learning
Not dumb questions at all. But we are not here to help people learn typescript/javascript. There are other forums and web pages specialized on that
Hello Merry Christmas 🎄
Can anyone share a sample code of how to deploy token on Injective
Please check the documentaiton page to find examples. If you are using the TS SDK check the TS SDK documentation page
Alright, thanks I will check it out
have you fixed it yet?
/apps/data # yes Hazard@10 | injectived tx wasm store /var/artifacts/cw20_base.wasm --from=$(echo $INJ_ADDRE
SS) --chain-id="injective-888" --yes --gas-prices=500000000inj --gas=20000000 --node=https://k8s.testnet.tm.
injective.network:443
Error: error unmarshalling: invalid character '<' looking for beginning of value
yes
the node is not correct
use the node rpc for testnet in the documentation
they changed it
Error: account sequence mismatch, expected 2, got 0: incorrect account sequence
I got this error while deploying, please what does it mean.
Please can you help me with a link to the new rpc
not on the computer right know, but check de documentation
just look for injective rpc endpoint in goohle
Thanks mate
Thanks
It's my pleasure sir
You are using the incorrect endpoint in the node param
This is explained in the FAQ section of the API documentation
Yah, fixed it. Everything is working fine now.
Is there an example of how to compile cuz I keep getting compile errors
Anyone know how to get this away
@past zenith, in case I was not clear before: this is not the place to ask typescript/javascript questions. Let's keep this Discord server dedicated to Injective stuff
hey, ninjas! Can you please send me some testnet INJ? >> inj18trqv4aqn2fr2n5fkky8nsnlwkypvvlpjtzam3
🥹 🥹 🥹
I am trying to instantiate a contract using
injectived tx wasm instantiate
The output looks right, the txhash is C17BC6A03BE64BB2BFD18DB636D2E68D0789A8FC6C3059E64FBE5941C87C58D6
but I cant see anything on the testnet
why?
it wasnt the correct information i needed, i thought the tx count from the accounttxs was the correct one.
But i found that one which is exactly what i need.
https://api.injective.exchange/?go#injectiveexplorerrpc-getwasmcontractbyaddress
ok, never mind, it did work
now, this is the instantiate call https://testnet.explorer.injective.network/transaction/C17BC6A03BE64BB2BFD18DB636D2E68D0789A8FC6C3059E64FBE5941C87C58D6/
where can I find the contract address?
there is only a documentation for Golang, so i was hoping that somebody here might know if it is possible to make a similar request with the python package
!faucets
Receive a small amount of INJ, enough to make 1-2 transactions.
- https://inj.supply/
- https://stakely.io/en/faucet/injective-protocol
- https://bwarelabs.com/faucets/injective-mainnet
For Testnet use: https://testnet.faucet.injective.network/
No, that message is not available in the Python SDK yet
thank you
was trying to renounce ownership, so i set admin to empty string as per the docs
should've just set tp dead address now that i think about it
what's the dead address on inj tho
also can you please walk me through updating token metadata
You need to use the Zero Address. Please check again de documentation. Bojan updated it recently to mention the use of the Zero Address
The process of updating the token metadata is described in the TS SDK documentation
Hey, I want to broadcast a message from my nodejs server by using MsgBroadcaster on injective testnet. But I faced to a problem that ask me to install keplr extension. What I actually want is setting a cronjob on my node server but I cannot install keplr extention to my server because it is not browser. How can i figure out my problem? Is there any way to broadcast a message from node server without using keplr extention?
damn I keep getting in love in these docs, self explanatory and self serving ❤️
but, I suggest using this approach for a CLI environment, not the Cosmjs one https://docs.ts.injective.network/transactions/private-key#example-with-msgbroadcasterwithpk
hi guys
error TS1005: ',' expected.
39 uri: '' /** the logo of your token, should be hosted on IPFS and should be a small webp image */
~~~
is the URI a mandatory when trying on testnet?
Im looking to create NFTs with a blurred public view, ensuring only the owner sees the clear content. Any insights on how to achieve this would be fantastic. Thanks!
You should get in touch with the NFT management dapps, like Talis
do you have any contact for me? Thanks
nvm lol smh
If one would want to build a project either on Injective, or as an entirely new chain on the cosmos SDK, with IBC and CosmWASM, how long would it take without anything fancy? The project if built indepentely would still be able to interact with Injective to use the order book?
depends on the scope of your project no?
@vale gulch Tried messaging you..
hi hayabusa, i dont know how to compile the TS scripts. i would like to know that aswell
is testnet still under maintenance?
Hi I am batch uploading the set of IBC contracts using batch proposal using following example template:
$ %s tx xwasm "batch-store-code-proposal \
--contract-files="proposal1.wasm,proposal2.wasm" \
--batch-upload-proposal="path/to/batch-store-code-proposal.json" \
--from=genesis \
--deposit="1000000000000000000inj" \
--keyring-backend=file \
--yes
Where batch-store-code-proposal.json contains:
{
"title":"title",
"description":"description",
"proposals":[
{
"title":"Contract 1 Title",
"description":"Contract 1 Description",
"run_as":"<put your address here>",
"wasm_byte_code":"",
"instantiate_permission":{
"permission":"3",
"address":""
}
},
{
"title":"Contract 2 Title",
"description":"Contract 2 Description",
"run_as":"<put your address here>",
"wasm_byte_code":"",
"instantiate_permission":{
"permission":"3",
"address":""
}
}
]
}```
I am confused what value to use in below places:
1. --from=genesis
2. "permission":"3"
3. "address":""
can you send me any testnet INJ? faucet isnt working atm
yh I saw, but am I supposed to clone the repo, update with my token metadata and then make a pr?
anyone know where to get faucet
I have saved some token enough to lauch one batch proposal from here: https://bwarelabs.com/faucets/injective-testnet
But this faucet start around UTC+10
thanks man
sent you a PM
hey abel im getting this error here:
Error: timeout of 15000ms exceeded
at ChainRestAuthApi.<anonymous> (C:\Users\gearf\Desktop\ATK\node_modules@injectivelabs\utils\src\classes\HttpRestClient.ts:50:42)
at Generator.throw (<anonymous>)
at rejected (C:\Users\gearf\Desktop\ATK\node_modules@injectivelabs\utils\dist\cjs\classes\HttpRestClient.js:6:65)
at processTicksAndRejections (node:internal/process/task_queues:95:5) {
type: 'http-request',
code: 413,
originalMessage: 'timeout of 15000ms exceeded',
name: 'HttpRequestException',
errorClass: 'HttpRequestException',
context: 'cosmos/auth/v1beta1/accounts/inj1n85jfpxee430qavn9edlkup9kny7aszarag8ed',
contextModule: undefined,
method: 'GET'
do you know what this could be?
Hi do I need to add wasm_byte_code in batch proposal, as it is very big size and also contains \ in the string which breaks the json object?
@broken jacinth is a way to lock a token on injective and also is a zero address on injective ?
now im getting this error.. originalMessage: "metadata must contain a denomination unit with display denom
it already does!!!
denomUnits: [
{
denom: factory/${injectiveAddress}/u${subdenom},
exponent: 0,
aliases: [micro${subdenom}],
display: 'MADARA' // add this line
},
{
denom: factory/${injectiveAddress}/${subdenom},
exponent: 6,
aliases: [subdenom]
}
].sort((a, b) => a.exponent - b.exponent) /** denom units should be sorted asc by exponent */
}
ive tried chatgpt
...
its literally right here
metadata: { base: denom, /** the base denom */ description: 'He who wrestles with God shall inherit the world', /** description of your token */ display: 'MADARA', /** the displayed name of your token on UIs */ name: 'MADARA', /** the name of your token */ symbol: 'MDRA', /** the symbol of your token */ uri: '', /** the logo of token, should be hosted on IPFS and should be a small webp image */ uriHash: '', /** the hash of the logo image */ denomUnits: [
originalMessage: "metadata must contain a denomination unit with display denom
you can check this repo here for better understanding
tried sending you a DM.. idk i f this helps ..
looks like this is for NFTS. Im simply creating atoken with token factory..
oh sorry was not paying attention, please tell me more about what do you want to achieve.
Can I dm you instead?
sorry got some work policy, that i don't open any dms on my account. just a strict protocol. we can maybe put a solution here in the chat.
im currently creating a token with INjective TS SDK
trying to compile my token factory file
and it keeps throwing this error "metadata must contain a denomination unit with display denom
when I already have it showing in my code:
metadata: { base: denom, /** the base denom */ description: 'He who wrestles with God shall inherit the world', /** description of your token */ display: 'MADARA', /** the displayed name of your token on UIs */ name: 'MADARA', /** the name of your token */ symbol: 'MDRA', /** the symbol of your token */ uri: '', /** the logo of token, should be hosted on IPFS and should be a small webp image */ uriHash: '', /** the hash of the logo image */ denomUnits: [
the display is there.
MADARA is already the disply denom
idk i think ive already done this
const msgChangeAdmin = new sdkTs.MsgChangeAdmin({
denom: factory/${injectiveAddress}/${subdenom},
sender: injectiveAddress,
newAdmin: '' /** SET TO BLANK STRING */,
});
const msgChangeAdmin = new sdkTs.MsgChangeAdmin({ denom:factory/${injectiveAddress}/${subdenom}, sender: injectiveAddress, newAdmin: '' /** SET TO BLANK STRING */, }); const msgSetDenomMetadata = new sdkTs.MsgSetDenomMetadata({ sender: injectiveAddress, metadata: { base: denom, /** the base denom */ description: 'He who wrestles with God shall inherit the world', /** description of your token */ display: 'MADARA', /** the displayed name of your token on UIs */ name: 'MADARA', /** the name of your token */ symbol: 'MDRA', /** the symbol of your token */ uri: '', /** the logo of token, should be hosted on IPFS and should be a small webp image */ uriHash: '', /** the hash of the logo image */ denomUnits: [ { denom:factory/${injectiveAddress}/u${subdenom}, exponent: 0, aliases: [micro${subdenom}], }, { denom:factory/${injectiveAddress}/${subdenom}, exponent: 6, aliases: [subdenom] } ].sort((a, b) => a.exponent - b.exponent) /** denom units should be sorted asc by exponent */ } });
are referring to this one? https://docs.ts.injective.network/core-modules/token-factory#full-example
yes
the admin one dont i have to leave blank?
i guess you need to put one.
based on the documentation
Step 1: Install Dependencies
Make sure you have the necessary dependencies installed. In this example, we'll use the @injectivelabs/sdk-ts and @injectivelabs/utils packages.
npm install @injectivelabs/sdk-ts @injectivelabs/utils
Step 2: Import Required Modules
import { MsgCreateDenom, MsgMint, MsgSetDenomMetadata, MsgChangeAdmin } from "@injectivelabs/sdk-ts";
import { BigNumberInBase } from "@injectivelabs/utils";
import { Network } from "@injectivelabs/networks";
Step 3: Set Up Account and Token Details
const injectiveAddress = "YOUR_INJECTIVE_ADDRESS";
const privateKey = "YOUR_PRIVATE_KEY";
const subdenom = "your-token-subdenom"; // Replace with your desired subdenom
const amountToMint = 1000000000; // Replace with the initial token amount
const newAdminAddress = "NEW_ADMIN_ADDRESS"; // Replace with the new admin address (or set to empty string)
Step 4: Create Denom
const msgCreateDenom = MsgCreateDenom.fromJSON({
subdenom,
sender: injectiveAddress,
});
const txHashCreateDenom = await new MsgBroadcasterWithPk({
privateKey,
network: Network.Testnet, // Use the appropriate network (Testnet/Mainnet)
}).broadcast({
msgs: msgCreateDenom,
});
console.log("Denom created. Tx Hash:", txHashCreateDenom);
const msgCreateDenom = MsgCreateDenom.fromJSON({
subdenom,
sender: injectiveAddress,
});
const txHashCreateDenom = await new MsgBroadcasterWithPk({
privateKey,
network: Network.Testnet, // Use the appropriate network (Testnet/Mainnet)
}).broadcast({
msgs: msgCreateDenom,
});
console.log("Denom created. Tx Hash:", txHashCreateDenom);
Step 5: Mint Tokens
const msgMint = MsgMint.fromJSON({
sender: injectiveAddress,
amount: {
denom: `factory/${injectiveAddress}/${subdenom}`,
amount: amountToMint,
},
});
const txHashMint = await new MsgBroadcasterWithPk({
privateKey,
network: Network.Testnet, // Use the appropriate network (Testnet/Mainnet)
}).broadcast({
msgs: msgMint,
});
console.log("Tokens minted. Tx Hash:", txHashMint);
Step 6: Set Token Metadata
const msgSetDenomMetadata = MsgSetDenomMetadata.fromJSON({
sender: injectiveAddress,
metadata: {
base: `factory/${injectiveAddress}/${subdenom}`,
description: "Your token description",
display: subdenom,
name: "Your Token Name",
symbol: "YOURTOK",
uri: "https://your-token-logo-uri.png", // Replace with your token logo URI
denomUnits: [
{
denom: `factory/${injectiveAddress}/u${subdenom}`,
exponent: 0,
aliases: [`micro${subdenom}`],
},
{
denom: `factory/${injectiveAddress}/${subdenom}`,
exponent: 6,
aliases: [subdenom],
},
],
},
});
const txHashSetDenomMetadata = await new MsgBroadcasterWithPk({
privateKey,
network: Network.Testnet, // Use the appropriate network (Testnet/Mainnet)
}).broadcast({
msgs: msgSetDenomMetadata,
});
console.log("Token metadata set. Tx Hash:", txHashSetDenomMetadata);
Step 7: Change Admin (Optional)
const msgChangeAdmin = MsgChangeAdmin.fromJSON({
denom: `factory/${injectiveAddress}/${subdenom}`,
sender: injectiveAddress,
newAdmin: newAdminAddress,
});
const txHashChangeAdmin = await new MsgBroadcasterWithPk({
privateKey,
network: Network.Testnet, // Use the appropriate network (Testnet/Mainnet)
}).broadcast({
msgs: msgChangeAdmin,
});
console.log("Admin changed. Tx Hash:", txHashChangeAdmin);
Replace placeholder values like YOUR_INJECTIVE_ADDRESS, YOUR_PRIVATE_KEY, and others with your actual details.
Ensure you're using the correct network (Testnet/Mainnet) and adjust accordingly.
The examples assume you're using the Testnet network. Update the network parameter accordingly for the Mainnet.
Handle private keys securely and consider using environment variables or a secure key management solution.
I implement a practice in all my development work where I transfer admin privileges to another account. This precautionary measure is taken to mitigate the risk of smart contract compromise in the event of a security breach or unauthorized access to my developer accounts.
each of the steps you need to execute it one at a time
and also upload first your token logo on ipfs
hoping that this will help others on deploying a token
oh one at a time?
yes
so run the code every step?
to locate where did you get any problems. if the problems persist on step 5 then you need to debug it.
dont hastily run all the codes at once
all the steps has a console.log
but if you prefer a single code that is already compile with error logs put in every steps you can check my writings here.
ping me @grand knot if you have more question. Gracias
just tried the code i still get some errors here..
can you show the error
C:\Users\gearf\AppData\Roaming\npm\node_modules\ts-node\src\index.ts:859
return new TSError(diagnosticText, diagnosticCodes, diagnostics);
^
TSError: ⨯ Unable to compile TypeScript:
atk.ts
41 - error TS2304: Cannot find name 'MsgBroadcasterWithPk'.
19 const txHashCreateDenom = await new MsgBroadcasterWithPk({
~~~~~~~~~~~~~~~~~~~~
atk.ts:34:15 - error TS2304: Cannot find name 'injectiveAddress'.
34 sender: injectiveAddress,
~~~~~~~~~~~~~~~~
atk.ts:36:27 - error TS2304: Cannot find name 'injectiveAddress'.
36 denom: factory/${injectiveAddress}/${subdenom},
~~~~~~~~~~~~~~~~
atk.ts:36:47 - error TS2304: Cannot find name 'subdenom'.
36 denom: factory/${injectiveAddress}/${subdenom},
~~~~~~~~
atk.ts:37:17 - error TS2304: Cannot find name 'amountToMint'.
37 amount: amountToMint,
~~~~~~~~~~~~
atk.ts:41:34 - error TS2304: Cannot find name 'MsgBroadcasterWithPk'.
41 const txHashMint = await new MsgBroadcasterWithPk({
~~~~~~~~~~~~~~~~~~~~
atk.ts:42:7 - error TS18004: No value exists in scope for the shorthand property 'privateKey'. Either declare one or provide an initializer.
42 privateKey,
~~~~~~~~~~
atk.ts:56:15 - error TS2304: Cannot find name 'injectiveAddress'.
56 sender: injectiveAddress,
~~~~~~~~~~~~~~~~
atk.ts:57:7 - error TS2741: Property 'uriHash' is missing in type '{ base: string; description: string; display: any; name: string; symbol: string; uri: string; denomUnits: { denom: string; exponent: number; aliases: any[]; }[]; }' but required in type 'Metadata'.
57 metadata: {
so
no matter what I have to have a URL for the image?>
Still getting an error even though i uploaded to IPFS and provided img link
It appears that the uriHash property is missing in your metadata object. Add the required property or adjust your metadata object to match the expected type.
uri: "https://your-token-logo-uri.png",
uriHash: "hash_value", // Add this line
denomUnits: [
This error indicates that TypeScript is not able to infer the type of privateKey. Ensure that the type of privateKey is properly defined. For example:
const privateKey: string = "YOUR_PRIVATE_KEY";
its my wallet private key right?
Undefined Variables (injectiveAddress, subdenom, amountToMint, etc.):
Make sure you have defined these variables before using them. For example:
const injectiveAddress = "YOUR_INJECTIVE_ADDRESS";
const subdenom = "your-token-subdenom";
const amountToMint = 1000000000;
Ensure that you have imported MsgBroadcasterWithPk at the beginning of your TypeScript file.
import { MsgBroadcasterWithPk } from "@injectivelabs/sdk-ts";
i dont see an error saying missing funds though
possible just try it.
C:\Users\gearf\AppData\Roaming\npm\node_modules\ts-node\src\index.ts:859
return new TSError(diagnosticText, diagnosticCodes, diagnostics);
^
TSError: ⨯ Unable to compile TypeScript:
atk.ts:36:15 - error TS2304: Cannot find name 'injectiveAddress'.
36 sender: injectiveAddress,
~~~~~~~~~~~~~~~~
atk.ts:38:27 - error TS2304: Cannot find name 'injectiveAddress'.
38 denom: factory/${injectiveAddress}/${subdenom},
~~~~~~~~~~~~~~~~
atk.ts:38:47 - error TS2304: Cannot find name 'subdenom'.
38 denom: factory/${injectiveAddress}/${subdenom},
~~~~~~~~
atk.ts:39:17 - error TS2304: Cannot find name 'amountToMint'.
39 amount: amountToMint,
~~~~~~~~~~~~
atk.ts:44:7 - error TS18004: No value exists in scope for the shorthand property 'privateKey'. Either declare one or provide an initializer.
44 privateKey,
~~~~~~~~~~
atk.ts:58:15 - error TS2304: Cannot find name 'injectiveAddress'.
58 sender: injectiveAddress,
~~~~~~~~~~~~~~~~
atk.ts:60:26 - error TS2304: Cannot find name 'injectiveAddress'.
60 base: factory/${injectiveAddress}/${subdenom},
~~~~~~~~~~~~~~~~
atk.ts:60:46 - error TS2304: Cannot find name 'subdenom'.
60 base: factory/${injectiveAddress}/${subdenom},
~~~~~~~~
atk.ts:62:18 - error TS2304: Cannot find name 'subdenom'.
62 display: subdenom,
~~~~~~~~
atk.ts:69:31 - error TS2304: Cannot find name 'injectiveAddress'.
69 denom: factory/${injectiveAddress}/u${subdenom},
~~~~~~~~~~~~~~~~
atk.ts:69:52 - error TS2304: Cannot find name 'subdenom'.
69 denom: factory/${injectiveAddress}/u${subdenom},
~~~~~~~~
atk.ts:71:31 - error TS2304: Cannot find name 'subdenom'.
71 aliases: [micro${subdenom}],
~~~~~~~~
atk.ts:74:31 - error TS2304: Cannot find name 'injectiveAddress'.
74 denom: factory/${injectiveAddress}/${subdenom},
~~~~~~~~~~~~~~~~
atk.ts:74:51 - error TS2304: Cannot find name 'subdenom'.
74 denom: factory/${injectiveAddress}/${subdenom},
~~~~~~~~
atk.ts:76:23 - error TS2304: Cannot find name 'subdenom'.
76 aliases: [subdenom],
~~~~~~~~
atk.ts:83:7 - error TS18004: No value exists in scope for the shorthand property 'privateKey'. Either declare one or provide an initializer.
83 privateKey,
~~~~~~~~~~
atk.ts:97:25 - error TS2304: Cannot find name 'injectiveAddress'.
97 denom: factory/${injectiveAddress}/${subdenom},
~~~~~~~~~~~~~~~~
atk.ts:97:45 - error TS2304: Cannot find name 'subdenom'.
97 denom: factory/${injectiveAddress}/${subdenom},
~~~~~~~~
atk.ts:98:15 - error TS2304: Cannot find name 'injectiveAddress'.
98 sender: injectiveAddress,
~~~~~~~~~~~~~~~~
atk.ts:99:17 - error TS2304: Cannot find name 'newAdminAddress'.
99 newAdmin: newAdminAddress,
~~~~~~~~~~~~~~~
atk.ts
7 - error TS18004: No value exists in scope for the shorthand property 'privateKey'. Either declare one or provide an initializer.
103 privateKey,
new error
private key error i guess
i have the right address and key for sure....
triple checked
could you drop your code here without any data that is censored just like private key and such
import { MsgCreateDenom, MsgMint, MsgSetDenomMetadata, MsgChangeAdmin } from "@injectivelabs/sdk-ts";
import { BigNumberInBase } from "@injectivelabs/utils";
import { Network } from "@injectivelabs/networks";
import { MsgBroadcasterWithPk } from "@injectivelabs/sdk-ts";
async function main() {
try {
const injectiveAddress = "inj1n85jfpxee430qavn9edlkup9kny7aszarag8ed";
const privateKey = "";
const subdenom = "MADARA";
const amountToMint = 1000000000;
const newAdminAddress = "";
// Step 4: Create Denom
const msgCreateDenom = MsgCreateDenom.fromJSON({
subdenom,
sender: injectiveAddress,
});
const txHashCreateDenom = await new MsgBroadcasterWithPk({
privateKey,
network: Network.Testnet,
}).broadcast({
msgs: msgCreateDenom,
});
console.log("Denom created. Tx Hash:", txHashCreateDenom);
} catch (error) {
console.error("Error in Step 4 (Create Denom):", error);
}
try {
// Step 5: Mint Tokens
const msgMint = MsgMint.fromJSON({
sender: injectiveAddress,
amount: {
denom: factory/${injectiveAddress}/${subdenom},
amount: amountToMint,
},
});
const txHashMint = await new MsgBroadcasterWithPk({
privateKey,
network: Network.Testnet,
}).broadcast({
msgs: msgMint,
});
console.log("Tokens minted. Tx Hash:", txHashMint);
} catch (error) {
console.error("Error in Step 5 (Mint Tokens):", error);
}
try {
// Step 6: Set Token Metadata
const msgSetDenomMetadata = MsgSetDenomMetadata.fromJSON({
sender: injectiveAddress,
metadata: {
base: factory/${injectiveAddress}/${subdenom},
description: "He who wrestles with god shall inherit the world",
display: subdenom,
name: "MADARA",
symbol: "MDRA",
uri: "https://ipfs.io/ipfs/QmbSiqZX3auW3Ht6iNH1oeTcuD9cnKiupwxdr7Ve6ucLZp?filename=background.png",
uriHash: "QmbSiqZX3auW3Ht6iNH1oeTcuD9cnKiupwxdr7Ve6ucLZp",
denomUnits: [
{
denom: factory/${injectiveAddress}/u${subdenom},
exponent: 0,
aliases: [micro${subdenom}],
},
{
denom: factory/${injectiveAddress}/${subdenom},
exponent: 6,
aliases: [subdenom],
},
],
},
});
const txHashSetDenomMetadata = await new MsgBroadcasterWithPk({
privateKey,
network: Network.Testnet,
}).broadcast({
msgs: msgSetDenomMetadata,
});
console.log("Token metadata set. Tx Hash:", txHashSetDenomMetadata);
} catch (error) {
console.error("Error in Step 6 (Set Token Metadata):", error);
}
try {
// Step 7: Change Admin (Optional)
const msgChangeAdmin = MsgChangeAdmin.fromJSON({
denom: factory/${injectiveAddress}/${subdenom},
sender: injectiveAddress,
newAdmin: newAdminAddress,
});
const txHashChangeAdmin = await new MsgBroadcasterWithPk({
privateKey,
network: Network.Testnet,
}).broadcast({
msgs: msgChangeAdmin,
});
console.log("Admin changed. Tx Hash:", txHashChangeAdmin);
} catch (error) {
console.error("Error in Step 7 (Change Admin):", error);
}
}
main();
yo to update token metadata do i got to clone the repo, add my token details and make a pr??
don't understand what the doc syas
denom: factory/${injectiveAddress}/${subdenom},
this line should be sth like denom: factory/${injectiveAddress}/${subdenom}
don't forget the back tick appostrophes
wait whats the difference
that's not the issue
hmm
any clue
no you just need to run the code.
anyone has done the submit a code proposal in a batch mode. I am not able to do it. The command just runs fine with tx printed. But while checking the tx in explorer its not found.
--contract-files="cw_test.wasm" \
--batch-upload-proposal="./batch-store-code-proposal.json" \
--deposit="50000000000000000000inj" \
--keyring-backend=test \
--from test_wallet \
--gas=50120949 \
--chain-id=injective-888 \
--broadcast-mode=sync \
--node https://testnet.sentry.tm.injective.network:443 \
--gas-adjustment 1.3 \
--gas-prices=500000000inj \
--yes
code: 0
codespace: ""
data: ""
events: []
gas_used: "0"
gas_wanted: "0"
height: "0"
info: ""
logs: []
raw_log: '[]'
timestamp: ""
tx: null
txhash: B9E0BA50680C2E3A58F3C01BE2F84E310EBB9257A34EBDB8FECF7BB26118B175```
you can try this @grand knot
where did you get this guides? so i can check it and have a review itself
i might help you with it
DUDE YOU ARE THE MAN
For individual contract I am following this link: https://docs.injective.network/develop/guides/cosmwasm-dapps/Cosmwasm_CW20_deployment_guide_Mainnet/
and for batch upload , I just found the help usage from injectived command.
Submit a proposal to batch upload Cosmwasm contracts.
Example:
$ %s tx xwasm "batch-store-code-proposal \
--contract-files="proposal1.wasm,proposal2.wasm" \
--batch-upload-proposal="path/to/batch-store-code-proposal.json" \
--from=genesis \
--deposit="1000000000000000000inj" \
--keyring-backend=file \
--yes
Where batch-store-code-proposal.json contains:
{
"title":"title",
"description":"description",
"proposals":[
{
"title":"Contract 1 Title",
"description":"Contract 1 Description",
"run_as":"<put your address here>",
"wasm_byte_code":"",
"instantiate_permission":{
"permission":"3",
"address":""
}
},
{
"title":"Contract 2 Title",
"description":"Contract 2 Description",
"run_as":"<put your address here>",
"wasm_byte_code":"",
"instantiate_permission":{
"permission":"3",
"address":""
}
}
]
}
Usage:
injectived tx xwasm batch-store-code-proposal [flags]```
what changes would i have to make to deploy on mainnet? Would i just need to change testnet to mainnet? and how come it worked even though i had no faucet for gas?
did it work?
yes it did but there seems to be some errors
i made comments on each lines that are important
Error in Step 6 (Set Token Metadata): Error: metadata's first denomination unit must be the one with base denom 'factory/inj1n85jfpxee430qavn9edlkup9kny7aszarag8ed/MADARA'
at TxGrpcApi.<anonymous> (C:\Users\gearf\Desktop\ATK\node_modules@injectivelabs\sdk-ts\src\core\modules\tx\api\TxGrpcApi.ts:187:40)
at Generator.next (<anonymous>)
at fulfilled (C:\Users\gearf\Desktop\ATK\node_modules@injectivelabs\sdk-ts\dist\cjs\core\modules\tx\api\TxGrpcApi.js:5:58)
at processTicksAndRejections (node:internal/process/task_queues:95:5) {
type: 'chain-error',
code: -1,
originalMessage: "metadata's first denomination unit must be the one with base denom 'factory/inj1n85jfpxee430qavn9edlkup9kny7aszarag8ed/MADARA'",
name: 'TransactionException',
errorClass: 'TransactionException',
context: undefined,
contextModule: 'undefined',
contextCode: -1
}
Error in Step 7 (Change Admin): Error: Invalid address (empty address string is not allowed): invalid address
at TxGrpcApi.<anonymous> (C:\Users\gearf\Desktop\ATK\node_modules@injectivelabs\sdk-ts\src\core\modules\tx\api\TxGrpcApi.ts:187:40)
at Generator.next (<anonymous>)
at fulfilled (C:\Users\gearf\Desktop\ATK\node_modules@injectivelabs\sdk-ts\dist\cjs\core\modules\tx\api\TxGrpcApi.js:5:58)
at processTicksAndRejections (node:internal/process/task_queues:95:5) {
type: 'chain-error',
code: -1,
originalMessage: 'Invalid address (empty address string is not allowed): invalid address',
name: 'TransactionException',
errorClass: 'TransactionException',
context: undefined,
contextModule: 'sdk',
contextCode: 7
}
it did work but got tehse errors
network: Network.Testnet, // Use the appropriate network (Testnet/Mainnet) about the network, you need to change it to
network: Network.Mainnet, // Use the appropriate network (Testnet/Mainnet)
let me take a look first
it seemed to work and i see the tokens in my address.
it just threw those errors at the end though
did it have a logo or such?
yes
i think its about your subdenom
const injectiveAddress = "YOUR_INJECTIVE_ADDRESS";
const privateKey = "YOUR_PRIVATE_KEY";
const subdenom = "your-token-subdenom"; // Replace with your desired subdenom
const amountToMint = 1000000000; // Replace with the initial token amount
const newAdminAddress = ""; // Replace with the new admin address (or set to empty string)
okay just leave it
if it works and not broken
then its fine
lmao
anyways
test it on testnet first
yeah
work around with it
send it to hackers lmao
ok and if on mainnet just switch the word to mainnet right
just make sure to have enough inj in my wallet right
i think it was like 10 inj
cant accept friend request? I wont bug you too much. I like to connect with other devs in the space...
🇨🇦
okay brother, just accepted it already.
Is there any NFT standard for injective? Or just the same with eth
NFT metadata standard?
No official standard for now.
How to find my private key. I know have a 12 word phrase in keplr but dont know how to find my private key
export the private key
this will help you get through things
https://help.keplr.app/articles/how-to-view-your-private-key
Easy steps to review your account's private key (Google credentials)
network: Network.Testnet
how do i change this to mainnnet?
change it to Network.Mainnet
Where can I find the typescript code to interact with an astroport smart contract to perform a swap?
That happens when the mempool in the validator nodes are full of TXs and the TX you sent is not processed in time (before that timeout). When this happens you need to submit your TX again.
Did this happen in mainnet or testnet?
With "lock" you mean not being able to mint any more? If the token is created using TokenFactory, then the answer for both question is yes. The steps are described in the TS SDK documentation page
Published an article on how to deploy your custom token on INJ
feel free to subscribe and clap. also you can share it.
Just helping one developer to another.
Let’s learn to deploy our own custom token on INJECTIVE
I am trying to inspect a testnet TX, but I get this error, can someone help?
You can use the explorer page to check the TX
yes, I did check that
but I would like to understand how to use injectived from cli
as I need to automatice some proceses
And what was the value you saw in the explorer that injectived is complaining about? You did not provide a TX hash (because instead of pasting the command and the error as clear text you just posted an image) so nobady can check the actual TX but you
Can you please use this channel #🆘︲help-and-support-old ?
Yep sorry, didn't saw it, will see you there
What ?
Can you write a message without "Hi"
Where can I find the typescript code to interact with an astroport smart contract to perform a swap?
Since you are trying to use a dApp functionality, maybe in the dApp docs?
Hi, how could I get the pair address from a factory token address? I'm struggling to find an answer on astroport's discord
Should i add the "funds[]" cuz if i do it says this:
The funds property not working for me is a very injective specific problem so can u help me out on this one? Thank you ❤️
Hey there fellow Devs! Is there a token launchpad on injective yet?
Not yet
gas: {
gasPrice: "5000000000",
gas: 10000000
}
How many gas should i place for a normal swap, does raising it give benefits?
I want to listen for the transfer event for the specific account, INJ transfers, how to do it in typescript? I tried the script provided in te doc but it doesn't work
Anyone from INJ team can help with this?
Hey trying to get the api for injective to track large buys on certain contracts, can anyone steer me in the right direction I couldnt find it in the docs I checked
Hi builders, we just opened #1189372652561895475 for you! If you have any technical question you can create new post to discuss
Happy coding!
any one here want to give me spare INJ for bridging eth to INJ ?
inj19u8sawp68cln3jfhw4d2k2mjflkxm7q4g4yrqq
a community member send gas to you
thanks brother.
Hi @hard spade , have you got the chance to look into it?
any admin online?
how can we help?
sir what about this can you guide me ..?
i have a problem 2 weeks ago
Keplr is using old RPC & LCD endpoints, you'll need to change it to the latest one.
RPC:
https://testnet.sentry.tm.injective.network/
LCD:
https://testnet.sentry.lcd.injective.network/
You can do it from Settings -> Advanced -> Change Endpoints -> Select Injective Testnet -> Enter the RPC URL in RPC and LCD URL in LCD - Save.
@dull rivet valid???
yes
Thank you
@minor junco where did you get this guide so that i can check it.
you can get the example from the command help message: injectived tx xwasm batch-store-code-proposal --help
How can I know the status of my software upgrade proposal status?
That's to store a smart contract code in the network, you should not submit a software upgrade proposal because it will be rejected and your deposit will be burned. Software upgrade proposal is to make a chain upgrade which is entirely different than injectived tx xwasm batch-store-code-proposal --help
Thanks @forest flint , But there is a doc that mentions we need to submit proposal for any contract deployment on mainnet. Which is correct?? We are soon going to deploy some contracts(IBC) on mainnet and want to be sure on all the process.
You must submit a proposal yes and then command you sent above is correct but it's not a "software upgrade proposal". This is a different type of a proposal and you should not submit that one.
Okay..so I can deploy the contracts without proposal on Mainnet in the same way we did on testnet?
injectived tx wasm store ...
Nope, you'll need to go through governance on mainnet
Okay .. I got ..Thanks. So the steps in the below doc is what we need to follow while deploying on mainnet?https://docs.injective.network/develop/guides/cosmwasm-dapps/Cosmwasm_CW20_deployment_guide_Ma
I have been trying to test out apps like neptune and mito using the injective testnet for a few days now and I haven't been able to really do any transactions. Every time I try a transaction it always says failed to fetch my balance on the testnet, and then after approving anyway, I get this message:
Failed to get response from https://k8s.testnet.lcd.injective.network/cosmos/tx/v1beta1/txs
I am using Keplr wallet and have testnet funds loaded into the wallet. I also have tried this on 2 different computers using brave browser, and 1 using chrome with similar results. I also haven't seen anyone else with this problem but maybe I just haven't looked hard enough. Any explanations?
Because Keplr is using old RPC & LCD endpoints, you'll need to change it to the latest one.
RPC:
https://testnet.sentry.tm.injective.network/
LCD:
https://testnet.sentry.lcd.injective.network/
You can do it from Settings -> Advanced -> Change Endpoints -> Select Injective Testnet -> Enter the RPC URL in RPC and LCD URL in LCD - Save.
This is the message I get when I try to confirm: "Failed to set endpoints
RPC endpoint has different chain id (expected: injective-1, actual: injective-888)
Go to top left Keplr Menu -> Manage chain visiblity -> Select Injective Testnet -> Save.
Then try again, make sure to select Injective Testnet while changing the endpoints.
grpc api sometimes throw error: Uncaught (in promise) TypeError: Cannot redefine property: stack Is unclear why it failed. Using the @injectivelabs/sdk-ts has anyone seen this before?
error: Uncaught (in promise) TypeError: Cannot redefine property: stack
at GrpcUnaryRequestException.setStack (file:///Users/me/Library/Caches/deno/npm/registry.npmjs.org/@injectivelabs/exceptions/1.14.4_1/dist/cjs/exception.js:68:21)
at GrpcUnaryRequestException.parseError (file:///Users/me/Library/Caches/deno/npm/registry.npmjs.org/@injectivelabs/exceptions/1.14.4_1/dist/cjs/exception.js:39:14)
at new ConcreteException (file:///Users/me/Library/Caches/deno/npm/registry.npmjs.org/@injectivelabs/exceptions/1.14.4_1/dist/cjs/exception.js:30:14)
at new GrpcUnaryRequestException (file:///Users/me/Library/Caches/deno/npm/registry.npmjs.org/@injectivelabs/exceptions/1.14.4_1/dist/cjs/exceptions/GrpcUnaryRequestException.js:8:9)
at ChainGrpcWasmApi.<anonymous> (file:///Users/me/Library/Caches/deno/npm/registry.npmjs.org/@injectivelabs/sdk-ts/1.14.4/dist/cjs/client/chain/grpc/ChainGrpcWasmApi.js:158:23)
at Generator.throw (<anonymous>)
at rejected (file:///Users/me/Library/Caches/deno/npm/registry.npmjs.org/@injectivelabs/sdk-ts/1.14.4/dist/cjs/client/chain/grpc/ChainGrpcWasmApi.js:6:65)
at eventLoopTick (ext:core/01_core.js:181:11)
I can`t take tokens
Cause faucet is under maintenance
Please Just to confirm, after building a token from the TokenFactory, what is the next possible step is to submit the logo?
https://testnet.faucet.injective.network/ This one worked for me
What is the best grpc to use ? Cause i've tried Testnet but and it's working fine , but sometimes i get err network timeout , using the Sentry seems to slow tbh
From this faucet inj tokens didn`t come
please any help with this? anyone? Thank you
I'll try tomorrow
in wallet balance is 0
Did you connect to some phishing sites?
Hello mate
опять вы
I can’t send lp to mirza wallet can someone guide me for it?
Hi! I’m new to injective and I need some help!
tell me
I just bridged sol over to my injective hub, how do I turn that sol into inj?
Try to convert that in binance
Yes i guess so
Need to swap it on helix
Make sure to convert it to bank first
Convert it to bank?
What’s that mean? Any pics?
Yes
It’s sol bank already I think, it’s asking me to convert from bank to cw20.
Nice, now go to helix and trade it to usdt
Wow! Really? Thank you! I’ll try rn!
Then from usdt I can convert to inj?
And which wallet do I connect to helix with? MetaMask or Keplr?
Either is fine
Ok I did it! Thank you!!
You’re very helpful!!!
I have inj in my MetaMask wallet now! How do I put that in my keplr wallet instead?
Nice! Can I transfer from MetaMask wallet address to keplr wallet address?
You can do that too yes
Thank you sooo much!!!
Is it advisable to use the native bridge or buy from a CEX
If you have access to a cex with inj that can send natively (coinbase is not native inj) that will likely be easiest. If you dont (like US) you can do bridge (I recommend looking through the injective twitter/blog they put out some post that explain how to get to injective from a few routes)
I keep getting this failed message while trying to convert to bank. Anyone can help?🙏
Hey
where can we see the injectived source in the github here: https://github.com/InjectiveLabs?
Hey guys, who can I speak to about building a web3 game on injective?
Guys If your keprl wallet didn`t show inj balance you can check
https://testnet.hub.injective.network/
I guess you are trying to do that to "burn" the LP tokens. If that is the case, you should use the burning logic provided by the liquidity pool dApp you are using if they provide one, before transfering the LP tokens. If you transfer the LP tokens the community won't be able to trust they will never be used to redeem.
Keplr issue is because it's not using the correct endpoints, make sure you change it to the correct ones: https://docs.injective.network/develop/public-endpoints
Thank you)
Is cw20 send with a sub message an atomic transaction on injective?
https://github.com/CosmWasm/cw-plus/blob/1a598fd99f788e1f0a2d735ff7d19571ca70205c/packages/cw20/src/msg.rs#L18
sup fam, i am not able to fetch market data from indexer
const ENDPOINTS = getNetworkEndpoints(NETWORK);
const indexerSpotApi = new IndexerGrpcSpotApi(ENDPOINTS.indexer);
const markets = await indexerSpotApi.fetchMarkets();```
do i need to init or auth something before i can make the fetchMarkets call?
when trying with http rest:
at IndexerRestDerivativesChronosApi.get (webpack-internal:///(rsc)/./node_modules/@injectivelabs/utils/dist/esm/classes/HttpRestClient.js:44:103)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async retryHttpCall (webpack-internal:///(rsc)/./node_modules/@injectivelabs/sdk-ts/dist/esm/client/BaseRestConsumer.js:17:24)
at async IndexerRestDerivativesChronosApi.fetchMarketSummary (webpack-internal:///(rsc)/./node_modules/@injectivelabs/sdk-ts/dist/esm/client/indexer/rest/IndexerRestDerivativesChronosApi.js:17:30)
at async test (webpack-internal:///(rsc)/./app/actions.ts:33:27)
at async Dex (webpack-internal:///(rsc)/./app/dex/page.tsx:12:25) {
type: 'http-request',
code: 502,
originalMessage: 'Bad Gateway',
name: 'HttpRequestException',
errorClass: 'HttpRequestException',
context: 'market_summary',
contextModule: undefined,
method: 'GET'
}```
update: working now, had to switch to TestnetK8
Answering my own question, it is atomic.
You should not use testnet K8. Please check the official endpoints in the documentation
Official docs say to use testnet, testnet doesn’t work for me, testnetk8 and mainnet work
I suggest you using testnet sentry. If you have issues connecting you can post the error message for us to check it
Ty I’ll try testnet sentry and report back
testnet sentry works!
@broken jacinth From my knowledge right now the Mainnet doesnt support NFTs for the moment or am I mistaken, and if they support NFTs which coding language?
As I didnt saw it in remix
is it only me, or the testnet is not working right now ?
NFTs are supposed by dApps running on Injective (like Talis for example)
They are supported on injective mainnet on talis
sup guys, is there a way to onboard web2 users with an embedded inj wallet?
like privy
From what chain do you want to onboard web2
Good days guys
Please is there a way I can recover my helix app wallet
I had a little virus attack on my system 2 days ago and I couldn't access any of my wallets or documents inside
And I don't have the private key or wallet address to the metamask I connected the helix app to🙏🙏
So right now I don't know how to get back the wallet
I got some injective tokens and also got $talis which I staked on the talis_protocol website
I'll need help from the team please 🙏
If you lost your private keys, no one can help you, I am sorry
Okay
But please can I know the metamask the wallet is connected to
That is my main problem
I don't even know which metamask it is connected to so I can look for where I might have kept the private key
inj1ra8fk9rth3enrec6hdplqwmmw95atw9gxr5zmg
This is the wallet address 🙏
This is the ETH address corresponding to it - 0x1f4e9b146bbc7331e71abb43f03b7b7169d5b8a8
Thank you
Injective
hey lol
sooooooo
hey just trying to burn my lp tokens, following what sensei did, but seiscan doesnt sseem to be working, could someone help me try and find my lp token address for factory/sei1epyu0nrw0gzllswnmlt42a58gl8wlzmr4u86gv/SEIWA
$100 to anyone that can help me 🙂
@broken jacinth \
its pretty much the same since cosmwasm so hope u could help
all good figured it out
can you help me out
I want to build a contract in injective, I follow this document: https://docs.injective.network/develop/guides/token_launch/
here is the code:
injectived tx tokenfactory create-denom test_token --from=gov --chain-id=injective-1 --node=https://sentry.tm.injective.network/ --gas-prices=500000000inj --gas 1000000
When I run, occur this error "Error: rpc error: code = NotFound desc = rpc error: code = NotFound desc = account inj1qpprp5ljm4q2shyefluqdv9rp7d0q0kmtfku74 not found: key not found
Usage:
injectived tx tokenfactory create-denom [subdenom] [flags]
any help? thank you so much
Your key corresponds to inj1qpprp5ljm4q2shyefluqdv9rp7d0q0kmtfku74 but inj1qpprp5ljm4q2shyefluqdv9rp7d0q0kmtfku74 has no funds. You have to transfer some INJ to that account.
Thank you for your help. yeah they are 0 fund now, I thought, it will show the fund problem
here is my command, can you check if my RPC is correct for mainnet please @forest flint
Looks good yes.
if I want to choose specific wallet to make a token, I need to write the code instead of this document "https://docs.injective.network/develop/guides/token_launch/" is that right? since it will generate wallet automatically
Where I can verify my contact on INJ ?
hey
i heard that launching on injective smart contract take alot of time to approval
is this true?
@hard spade are you active?
you can check the times for governance proposals
How do you fix this ??
Error in Step 3 (Set Token Metadata): Error: metadata's first denomination unit must be the one with base denom 'factory/inj1vh4qp2p4y0lxqxhu7w2wj3puam6x28atmkqcar/TOK'
at TxGrpcApi.<anonymous> (/Users/kensdev/node_modules/@injectivelabs/sdk-ts/src/core/modules/tx/api/TxGrpcApi.ts:187:40)
at Generator.next (<anonymous>)
at fulfilled (/Users/kensdev/node_modules/@injectivelabs/sdk-ts/dist/cjs/core/modules/tx/api/TxGrpcApi.js:5:58)
at processTicksAndRejections (node:internal/process/task_queues:95:5) {
type: 'chain-error',
code: -1,
originalMessage: "metadata's first denomination unit must be the one with base denom 'factory/inj1vh4qp2p4y0lxqxhu7w2wj3puam6x28atmkqcar/TOK'",
name: 'TransactionException',
errorClass: 'TransactionException',
context: undefined,
contextModule: 'undefined',
contextCode: -1
}
Are you sending the first denom unit as the error message is requesting you to do?
i replied on our server
What ways are y'all using to find volume on injective? I'm looking at message event attributes but have a tough time finding the right combination of attribute values and attribute keys to get daily volume
Hello
who can teach me about how to integrate injective on my dapp
Read this please https://docs.injective.network/develop/
Hello everyone.
I hope integrate injective with metamask.
But I have get error as like this