#❓︲dev-questions

1 messages · Page 2 of 1

fiery summit
#

What are the requirements for creating a token on INJ, can Node Js or VSC be used?

What software app will be needed to create one

near barn
lyric river
#

Yup, need help doing it?

fiery summit
trail lodge
#

Can anyone create a test token on INJ for me ?

nimble quarry
#

may I ask how to use 1rpc's rpc in the python sdk.
Once I replace grpc_endpoint, an error will be reported.

mighty fox
#

Does somebody know how to parameter MsgExecuteContractCompat funtion in order to swap inj to CW20 or factory token please ?

worldly light
#

some screenshot to illustrate further. is it safe to complete the transaction?thanks.

hearty storm
#

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?

tight girder
#

I have big question...
Node dont work for make a tx.
Wallet 1 ---> wallet 2

We can't on inj why

dusky elm
#

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 ?

shrewd juniper
#

The node I built has only one RPC link. The other links needed in the sdk need to be obtained from the node.

south leaf
#

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]
      },
    ]
verbal veldt
runic moon
#

Has anyone run into the error "Error: error unmarshalling: invalid character 'C' looking for beginning of value" when running "injectived tx tokenfactory create-denom"?

languid mural
#

Has there ever been periods of abnormally high activity on Injective? Do Fees remain low or do they spike?

fiery summit
verbal veldt
drowsy chasm
#

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?

graceful ginkgo
#

Are submitting proposal on mainnet require min deposit amount 50inj?

dull rivet
low scroll
#

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?

drowsy chasm
#

how to resolve this?

compact kestrel
#

Friends I want to create a meme coin on Injective, please help me

vagrant kelp
#

Hi Devs, I am planning on minting an nft project using inEVM. My concerns are:

  1. will we be able to list on current NFT marketplaces and receive royalties still?
  2. we got staking, tokens, airdrops, planned. Will we be able to execute it together with the NFTs?

Thank you in advance

daring yoke
#

what do we do about locking liquidity of a token?

#

it the best method to send to someones burn address?

violet dome
stone epoch
#

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...

turbid harbor
#

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

languid mural
#

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

dusky elm
stone epoch
#

does anyone have a working gRPC end point for testnet? gRPC in docs has never worked, and k8 node is down

dusky elm
night steppe
#

Hello.
An exemple or a link to a script that swap a token ?
Thanks

#

@tardy night if you are here

tardy night
pliant birch
#

Also is there still some maintenance on testnet ? Cause it works good but every now and then getting net::ERR_FAILED

night steppe
tardy night
night steppe
lavish holly
#

10 INJ for token factory, mint, update metadata and all? or we need to pay 30 INJ

tardy night
pliant birch
night steppe
night steppe
#

@tardy night I found another method that works. It was not "msgsend". Anyway, thanks for you help

solar hamlet
#

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

naive charm
#

is there any article or guide on how to make a coin using typescript?

twin orchid
#

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.

naive charm
#

can you suggest how much liquidity should we add?

compact kestrel
compact kestrel
# naive charm thank you

Can you help me create a coin bro, I've tried many things but nothing works, i don't know what to do

naive charm
#

do you have a project?

compact kestrel
compact kestrel
naive charm
compact kestrel
naive charm
#

i can be the developer for the project

compact kestrel
#

Please can anyone help me create a coin I will give $20 USDT

cerulean plover
cerulean plover
lunar parrot
#

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!

violet raptor
#

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 ~

fallen zenith
#

Hello, how am I able to read contracts on block explorers? I´m not able to find that out

civic vale
#

need for dev DM to disscuss

remote hawk
#

How can I query the latest block with txs with Python?

languid mural
#

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 😦

broken jacinth
languid mural
broken jacinth
broken jacinth
broken jacinth
languid mural
#

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

nimble quarry
#

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.

broken jacinth
nimble quarry
broken jacinth
languid mural
broken jacinth
# languid mural i cant find example code sir

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)

nimble quarry
broken jacinth
nimble quarry
hearty storm
#

curl --location --request GET "https://pisco-lcd.terra.dev/wasm/contract/terra195m6n5xq4rkjy47fn5y3s08tfmj3ryknj55jqvgq2y55zul9myzsgy06hk/smart/{HEX_ENCODED_JSON}?encoding=hex"

#

can i use this on inj

broken jacinth
hearty storm
nimble quarry
hearty storm
#

im trying to query contract. how can i do that in python package?

#

need MsgQuery

broken jacinth
#

I am not aware of any MsgQuery. All available messages are described in the API documentation page

hearty storm
#

afaik there is no method to read chain data form a contract in python package

#

this cant be true right

broken jacinth
hearty storm
#

but i would like to read chain data with arbitrary json

broken jacinth
#

That functionality has not been added to Python SDK yet

lunar parrot
#

can i send cw20 tokens from terra to injective?

candid skiff
#

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 ?

candid skiff
lean parcel
candid skiff
#

even if it is a new wallet right ?

candid skiff
lean parcel
#

Yes, if it is your own wallet you dont need memo, only when required by a centralized exchange

mighty fox
#

<@&739555074879258704> Any dev available to explain me how to swap with a js script please ?

mighty fox
compact kestrel
#

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.

cerulean plover
#

i apperently cant send my created token to other wallet

#

can only send INJ,

#

anyone can help with it i have 100$ reward

compact kestrel
mighty fox
cerulean plover
#

i added the LP, trading was fine, just can't send to other people, also the LP token

wind pier
#

how i can host and launch by self this rpc or nodes?

plucky onyx
#

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

wind pier
tight girder
#

Hello 0 rpc public works on INj ? Why lol

languid mural
shut igloo
#

hi bro i'm winner from twitter how to clam wl

lavish holly
#

if i create token using typescript still i need to pay 10 inj or what?

rugged void
#

Hello, any LP and token locker on Injective?

wise nova
#

yes, please use keplr directly, send the funds to another address do IBC bridge and send back

wise nova
wise nova
#

ctrl+f5 and try again

fathom sluice
wary kestrel
#

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

graceful aspen
#

@wary kestrel

#

Did you got an assistant about this from the group admin yet?

#

Am also having the same problem

pliant birch
#

From injective explorer , testnet is down i guess?

lament tendon
#

Hello, is there a way to intereact with liquidity pair true scanner?

pliant birch
subtle obsidian
#

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)
raven sparrow
#

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

tardy wing
#

Could anyone here help me with this

haughty oak
#

How kong does it take to get testnet token??

#

from the faucet?

pliant birch
fiery field
#

Are you adding LP as constant or concentrated LQ?

cyan jungle
#

Tried bridging some funds over from Sol to Injective using injective wormhole and lea wallet. cant seem to find how to claim the funds

vestal hawk
#

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

fathom sluice
#

why are requests sent through https for testnet but http for mainnet?

fathom sluice
#

also, you'll receive bridged solana, not INJ. Truly a great bridge to get started

fathom sluice
cyan jungle
cyan jungle
cyan jungle
fathom sluice
cyan jungle
fathom sluice
#

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

dull rivet
fathom sluice
#

.001

cyan jungle
real dock
#

can someone send me testnet inj? inj1yq4dwvnujpr9m8w4m5uq3e8hu0xxnw0eypzr0k

cyan jungle
fiery field
#

so what is burn address?

fathom sluice
#

if you find out how to convert that SOL to INJ please let me know

cyan jungle
dull rivet
broken jacinth
broken jacinth
broken jacinth
tardy wing
broken jacinth
#

Great, excellent idea. Keep it going!

stiff flower
#

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

wide schooner
#

Is there a max gas fee limit when sending a transaction?

stiff flower
#

yes

wide schooner
# stiff flower yes

Thank you, do you know what it is? I try to find in the docs but can't find it

last venture
#

Can I install injectived on Windows? or does it require me to use UNIX?

wraith agate
#

I cannot start my node,need some help

dull rivet
wraith agate
violet raptor
#

hello,i'm deploying cw contract on injective, and got error return as follows, need some help, plz

#

your kindly help is appreciated ~

novel meteor
#

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

weak gyro
#

Can someone help me out

#

How do I start deploying on INJ

weak gyro
#

After download injectived
Nothing happened

weak gyro
#

How do I proceed after downloading injectived

weak gyro
heady sonnet
#

Is the testnet down? I'd need it to make the video demo for the Hackaton

junior vale
#

anyone knows how to launch token in inj? willing to pay

junior vale
#

I don't know where is the platform to create or make a contract

weak gyro
#

Can someone help out?

#

Can we use remix or is there any other way?

junior vale
weak gyro
#

Yeah

golden minnow
#

Who can i ask about token factory?

vapid stump
#

Where can I find injective RPCs

pliant birch
#

Check on chain registry repo , you should find there everything you need

solar hamlet
#

This error was reported during the transaction, but the transaction was successful
await signingClient.sendTokens() this function

fiery field
#

how to send lp pair tokens? leap wallet or?

solar hamlet
#

keplr

desert pecan
#

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 ?

sturdy whale
#

Did you succeed, brother

candid skiff
#

sending inj from a wallet to another doesnt require memo right ?

slim pilot
#

How to multisend address?

dusky forum
#

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

pliant birch
vale gulch
#

what is the difference between wasm and wasmx ? i see some swaps on coinhall with wasm modul and some with wasmx

desert pecan
#

what's injective chain id ?

vale gulch
desert pecan
#

thx

#

and for testnet ?

lean parcel
desert pecan
#

tyvm

broken jacinth
broken jacinth
broken jacinth
broken jacinth
broken jacinth
fathom sluice
#

How to specify injective-py to only use rpc? ?
disable grpc

dusky forum
fathom sluice
#

@broken jacinth

#

How to specify injective-py to only use rpc? ?
disable grpc

icy tinsel
#

i dont take faucet inj testnet

broken jacinth
broken jacinth
glad ruin
#

What's up devs ya'll good? Peace to everyone

shrewd solstice
#

hi was trying to bridge from inj to eth using injective hub and attempted to claim but keep getting error

wise nova
#

bridges are taking longer than expected though 30 mins to -2 hours

shrewd solstice
quasi rivet
misty thistle
#

Is there any other RPC URL to work on devnet with the specific Injective RPC endpoint?

tardy wing
#

yo how do i transfer LP tokensssssss

tardy wing
#

This is all I keep getting when trying to do my transfers of lp tokens

lavish holly
#

any testnet dex for testing

frank sparrow
#

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?

naive charm
#

How much does it cost to make a coin token?

meager night
#

where to get INJ testnet token?

hasty oar
#

Does INJ have an online dev too llike ethereum has remix?

fathom sluice
weak gyro
uncut plume
#

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........??

dusky elm
#

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'

dusky elm
tardy wing
#

took lots of time

tardy wing
#

thank you squadron

cold wren
#

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

slim eagle
#

Hi

#

submit proposal command to upload binary file to mainnet not working to me

#

Someone facing same issue ?

broken jacinth
exotic oceanBOT
little whale
#

Any devs in here who can help build a smart contract?

desert pecan
#

what's the coin type for injective ?

#

118 ?

little whale
#

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

slim pilot
#

I created native token on mainnet. Why not show on explorer?

broken jacinth
slim pilot
#

I created native token on mainnet. How to add it to wallet?

last cape
broken jacinth
stiff copper
#

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

oblique wedge
#

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

hybrid finch
#

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

slim eagle
#

I need help about this too

weak gyro
#

I’m having the same problem

slim eagle
#

How can i deploy a smart contract on mainnet bypassing proposal ?

oblique wedge
#

@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

hybrid finch
broken jacinth
oblique wedge
slim eagle
weak gyro
#

@timid nexus

timid nexus
#

Yes!

hybrid finch
#

am I wrong?

broken jacinth
#

The gas you pay is one thing, the deposit is other thing. They are unrelated concepts

hybrid finch
#

I see. this means that I can get my deposited amount back once deposit period is ended

#

?

fathom sluice
#

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

wise nova
ashen bluff
#

Can someone please send testnet INJ please?

wise nova
#

yes. what's your inj address

ashen bluff
#

inj189hl8wqhf89r2l6x9arhtj2n8zx73cmsmts6pc

#

Thanks sir

#

How much is enough to deploy on testnet?

fathom sluice
#

damn it doesnt work

#

looks like wormhole doesnt like the
factory/inj1xtel2knkt8hmc9dnzpjz6kdmacgcfmlv5f308w/sometoken address

ashen bluff
fathom sluice
#

is it better to launch a cw20 token over a token factory (as recomended by the docs) token for things like bridging?

runic ice
#

@broken jacinth follow the docs, there is no option for token icon. How to do that?

spare vale
#

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?

broken jacinth
broken jacinth
forest flint
steep prism
#

HI, Are there call limit to public RPC endpoint?

#

I always get folowing message "timeout of 15000ms exceeded"

slim pilot
#

I created PR to submit token info. How long to be merged?

grim temple
#

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?

glacial trout
#

We are working to improve, but yes for now there is no liquidity

grim temple
#

Well thats the thing, I cant even see the USDC to bridge back on any of the platforms I have tried

grim temple
glacial trout
#

but you need manually add the contract on the Wormhole bridge

#

to bridge them back

grim temple
#

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

GitHub

Contribute to wormhole-foundation/wormhole-token-list development by creating an account on GitHub.

weak gyro
#

If you can create a token on Injective
Please indicate
I’ll pay

#

Is creating a token only possible on Linux

weak gyro
worthy vale
#

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 ?

desert pecan
#

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?

minor junco
#

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

forest flint
forest flint
desert pecan
#

Is there an injectived binary compatible with ARM architecture?

worthy vale
#

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

unkempt river
#

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

tacit jetty
#

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

solar shuttle
#

what is the documentation I need to read to create a token in injective?

slim pilot
#

Please merge Pull Request 328, thanks !

hushed quartz
#

Hello

solar shuttle
hushed quartz
#

Am new here

lean parcel
solar shuttle
#

what do I have to do?

Error Log
failed to execute message; message index: 0: unauthorized account

unkempt river
#

Anyone managed to run sdk-ts in nodejs?

spare vale
#

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?

hasty peak
#

Do I really need 1t storage space to get injectived

solar shuttle
#

I have it, what do I need to do? what syntax do I need to use?

hasty peak
#

which wallet will show my inj balance directly?? Don't think metmask has that

wise nova
loud chasm
#

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

wise nova
#

banned that guy

#

careful with scammers

loud chasm
#

thank you bro

wise nova
loud chasm
#

after launch ?

#

i really need help about that

wise nova
#

will have to wait till a dev sees this and help you

loud chasm
#

okey thank you

past zenith
#

Trying to learn how to interact with smart contracts without an interface. Where should I start?

#

Does injective have ABI (Application Binary Interface)?

runic moon
#

Or where I can find its source code?

loud chasm
#

how to renounce CA ?

#

can aynone helps

#

@obsidian moth im sorry but its ergant ser can you help

unkempt river
#

Which network should i use for Main and Test. K8s keep giving 503

wise nova
#

You will get it in a few mins

unkempt river
#

Nah I requested hours ago

mental fjord
mental fjord
hasty peak
#

I have a token but can't access the CA

the way things work here are kinda different

hasty peak
#

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
}

short halo
#

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

loud chasm
hasty peak
#

I'm using the ts sdk

loud chasm
amber merlin
#

Developer

#

Let work together

terse tree
#

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'

lime horizon
terse tree
#

wheres support ?

lean parcel
#

Please have patience until a dev responds

#

Its Christmass days, please take this into account

worthy vale
#

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 ?

minor junco
#

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

frail fractal
smoky hawk
#

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

frail fractal
#

Make sure those tokens are not the reward point tokens for black panther.

smoky hawk
smoky hawk
smoky hawk
frail fractal
#

Those tokens are related to that.

smoky hawk
frail fractal
smoky hawk
#

So I should to to perp and cancel anything open?

smoky hawk
frail fractal
smoky hawk
#

So I'll go back there, thanks Lahn

cold wren
#

there is any nft marketplace dApps example somewhere guys ?

frail fractal
# cold wren there is any nft marketplace dApps example somewhere guys ?
Talis Protocol

The NFT marketplace that empowers artists and bridges physical & digital art on the Cosmos ecosystem.

Dagora

Dagora is a multichain NFT marketplace aiming to make NFTs accessible to everyone. Dagora facilitates everyone to create, collect, trade, and unlock the possibility of NFTs by providing comprehensive features, tools, full-stack services & dedicated support.

cold wren
frail fractal
cold wren
#

yes exactly, sorry

frail fractal
#

I am not sure if there is anything like that for Injective.

cold wren
#

to apply some sell fees

frail fractal
#

Yeah sc is needed afaik

cold wren
#

ahah, well ill dive into it

#

thx for replying

hasty peak
#

can someone walk me through setting token metadata on inj?

short halo
#

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

obsidian moth
minor junco
frail fractal
#

Should refill in a while.

broken jacinth
broken jacinth
broken jacinth
vale gulch
#

hey
i am working with injectived. I know how to get the latest Tx of a normal account.

  1. injectived query account "address"
    as a response i get the balance and the sequence number
  2. 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

cold wren
#

!faucets

exotic oceanBOT
short halo
past zenith
#

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?

vale gulch
#

well yes

#

i have it running via a visual studio code in combination with a linux distro

#

then install injectived on it and you are good to go

past zenith
#

and to interact with a smart contract

#

can i do it through typescript

#

using my keplr wallet

#

?

#

on windows in visual studio code

vale gulch
#

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.

past zenith
#

My pc is not strong enoiugh for injetivized, should i than work through a hired server or something?

vale gulch
#

you can import your wallet there, and interact with contracts via the wasm modul.

vale gulch
#

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

past zenith
#

didnt know, thank you

vale gulch
#

you are welcome

past zenith
#

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

vale gulch
#

yes sir! with the wasm or the wasmx moduls

past zenith
#

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

vale gulch
#

the best documentation is actually available for Typescript

fossil pier
#

how to fix "Error: error unmarshalling: invalid character '<' looking for beginning of value" ?

past zenith
past zenith
fossil pier
#

no, I am asking my own question

past zenith
#

Since I just want to interact directly with other smart contracts but dont want to make my own

vale gulch
#

no this is just for the smart contract creators

fossil pier
#

@craggy pine do you know why I get that error unmarshalling, and how to debug and fix it?

vale gulch
fossil pier
past zenith
#

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

vale gulch
past zenith
#

Cuz how can I use keplr node

vale gulch
vale gulch
past zenith
#

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

vale gulch
vale gulch
past zenith
#

Cuz now for example I got the wasm code

vale gulch
#

and you can compile it ?

past zenith
#

But dont know how to connect to the chain itself, if that is something that needs to be done seperately

vale gulch
#

if yes the would be nice if you help me 😄

past zenith
past zenith
vale gulch
past zenith
#

In the same file than?

#

And than do the wasm function after?

vale gulch
#

tbh, i dont know for sure.As i said i have no clue how to interact with the chain fully via TS

fossil pier
#

guys, how to fix this error, trying to deploy the tutorial contract?

Error: error unmarshalling: invalid character '<' looking for beginning of value

broken jacinth
broken jacinth
broken jacinth
vale gulch
#

thanks abel!

#

you are a saint

vale gulch
# broken jacinth Please check if using the account TXs query (https://api.injective.exchange/#inj...

`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'

broken jacinth
#

Did it work?

vale gulch
#

yeah it worked

#

i get a correct result

broken jacinth
#

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

vale gulch
#

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

vale gulch
#

ahh well okay, i just deleted that part with unpacking transaction messages

grand knot
#

If i already created a token as denom is all i need to do i add liquidity through atroport?

broken jacinth
grand knot
grand knot
broken jacinth
grand knot
#

got the answer from searching

#

thank you merry christmas

grand knot
# broken jacinth You can create the token using only the TS SDK, yes. You can also use the `injec...

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?

GitHub

Basic setup with TS and ViteJs for Webflow sites! Contribute to armandsalle/vite-typescript-webflow development by creating an account on GitHub.

broken jacinth
lament tulip
#

i need a rpc for inj test net

broken jacinth
lament tulip
#

my inj test net rpc in keplr doesnt work

broken jacinth
past zenith
#

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?

broken jacinth
past zenith
broken jacinth
#

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

rain mountain
#

Hello Merry Christmas 🎄

#

Can anyone share a sample code of how to deploy token on Injective

broken jacinth
rain mountain
#

Alright, thanks I will check it out

short halo
fossil pier
#

yes

#

the node is not correct

#

use the node rpc for testnet in the documentation

#

they changed it

rain mountain
#

Error: account sequence mismatch, expected 2, got 0: incorrect account sequence

I got this error while deploying, please what does it mean.

short halo
fossil pier
#

not on the computer right know, but check de documentation

fossil pier
#

just look for injective rpc endpoint in goohle

short halo
dapper geyser
broken jacinth
broken jacinth
short halo
past zenith
#

Is there an example of how to compile cuz I keep getting compile errors

past zenith
#

Anyone know how to get this away

broken jacinth
round steppe
#

hey, ninjas! Can you please send me some testnet INJ? >> inj18trqv4aqn2fr2n5fkky8nsnlwkypvvlpjtzam3

#

🥹 🥹 🥹

fossil pier
#

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?

vale gulch
fossil pier
#

ok, never mind, it did work

#

where can I find the contract address?

vale gulch
#

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

exotic oceanBOT
broken jacinth
vale gulch
#

thank you

hasty peak
#

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

broken jacinth
#

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

sly musk
#

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?

tardy night
grand knot
#

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?

lethal plinth
#

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!

broken jacinth
lethal plinth
#

do you have any contact for me? Thanks

grand knot
#

nvm lol smh

onyx patrol
#

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?

grand knot
#

depends on the scope of your project no?

grand knot
#

@vale gulch Tried messaging you..

vale gulch
grand knot
#

is testnet still under maintenance?

minor junco
#

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":""
grand knot
hasty peak
grand knot
#

anyone know where to get faucet

minor junco
grand knot
# broken jacinth No, that message is not available in the Python SDK yet

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?

minor junco
#

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?

plain maple
#

@broken jacinth is a way to lock a token on injective and also is a zero address on injective ?

grand knot
#

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

hard spade
grand knot
grand knot
hard spade
hard spade
# grand knot 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.

grand knot
#

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 */ } });

hard spade
grand knot
#

yes

hard spade
#

you need to create two accounts

#

the creator one and the admin one

grand knot
#

the admin one dont i have to leave blank?

hard spade
#

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

grand knot
#

oh one at a time?

hard spade
grand knot
#

so run the code every step?

hard spade
#

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

grand knot
#

i see

#

thanks man

#

happy holidays

#

merry christmas

hard spade
#

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

grand knot
hard spade
grand knot
#

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.ts1941 - 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

hard spade
#
    
    uri: "https://your-token-logo-uri.png",
    uriHash: "hash_value", // Add this line
    denomUnits: [
grand knot
#

just did it

#

didnt owrk

hard spade
grand knot
#

its my wallet private key right?

hard spade
#

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;
hard spade
#

that has testnet funds

grand knot
#

ahh i dont have testnet funds

#

can that be the case?

hard spade
#

Ensure that you have imported MsgBroadcasterWithPk at the beginning of your TypeScript file.

import { MsgBroadcasterWithPk } from "@injectivelabs/sdk-ts";
grand knot
#

i dont see an error saying missing funds though

hard spade
grand knot
#

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.ts1037 - 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

hard spade
#

could you drop your code here without any data that is censored just like private key and such

grand knot
#

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();

hasty peak
grand knot
#

scroll above he has instructions

#

on how to do it

hasty peak
grand knot
#

wait whats the difference

hasty peak
#

that's not the issue

grand knot
#

hmm

hard spade
#

just give me a few minutes

hard spade
hasty peak
#

Ohh

#

Aiit

minor junco
#

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```
hard spade
hard spade
#

i might help you with it

minor junco
#

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]```

This guide will get you started with the governance process of deploying and instantiating CosmWasm smart contracts on Injective Mainnet.

grand knot
hard spade
grand knot
#

yes it did but there seems to be some errors

hard spade
grand knot
#

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

hard spade
#

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)

grand knot
#

it just threw those errors at the end though

hard spade
grand knot
#

yes

hard spade
#

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

grand knot
#

test it meaning

#

send it around n stuff?

hard spade
#

work around with it

#

send it to hackers lmao

grand knot
#

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

grand knot
# hard spade yeah

cant accept friend request? I wont bug you too much. I like to connect with other devs in the space...

keen verge
#

🇨🇦

hard spade
normal crater
#

Is there any NFT standard for injective? Or just the same with eth

hard spade
frail fractal
past zenith
#

How to find my private key. I know have a 12 word phrase in keplr but dont know how to find my private key

hard spade
past zenith
#

network: Network.Testnet

how do i change this to mainnnet?

hard spade
past zenith
#

Where can I find the typescript code to interact with an astroport smart contract to perform a swap?

broken jacinth
broken jacinth
hard spade
fossil pier
#

I am trying to inspect a testnet TX, but I get this error, can someone help?

broken jacinth
fossil pier
#

yes, I did check that

#

but I would like to understand how to use injectived from cli

#

as I need to automatice some proceses

broken jacinth
#

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

glacial trout
agile mountain
glacial trout
past zenith
#

Where can I find the typescript code to interact with an astroport smart contract to perform a swap?

broken jacinth
random frost
#

Hi, how could I get the pair address from a factory token address? I'm struggling to find an answer on astroport's discord

past zenith
#

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 ❤️

lavish venture
#

Hey there fellow Devs! Is there a token launchpad on injective yet?

wise nova
#

Not yet

past zenith
#

gas: {
gasPrice: "5000000000",
gas: 10000000
}

How many gas should i place for a normal swap, does raising it give benefits?

versed stump
#

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

versed stump
tardy wing
# wise nova Not yet

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

dull rivet
#

Hi builders, we just opened #1189372652561895475 for you! If you have any technical question you can create new post to discuss
Happy coding!

hard spade
#

any one here want to give me spare INJ for bridging eth to INJ ?

inj19u8sawp68cln3jfhw4d2k2mjflkxm7q4g4yrqq

dull rivet
hard spade
minor junco
sudden stag
#

any admin online?

dull rivet
sudden stag
#

i have a problem 2 weeks ago

frail fractal
# sudden stag sir what about this can you guide me ..?

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
sudden stag
hard spade
minor junco
#

you can get the example from the command help message: injectived tx xwasm batch-store-code-proposal --help

minor junco
#

How can I know the status of my software upgrade proposal status?

forest flint
minor junco
#

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.

forest flint
minor junco
#

Okay..so I can deploy the contracts without proposal on Mainnet in the same way we did on testnet?
injectived tx wasm store ...

forest flint
minor junco
jagged yarrow
#

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?

lean parcel
jagged yarrow
#

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)

frail fractal
unkempt river
#

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?

jagged yarrow
#

@lean parcel @frail fractal Thanks so much! It worked

unkempt river
#
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)
weary yacht
#

I can`t take tokens

red lava
brisk kernel
#

Please Just to confirm, after building a token from the TokenFactory, what is the next possible step is to submit the logo?

pliant birch
#

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

weary yacht
brisk kernel
weary yacht
#

I'll try tomorrow

weary yacht
#

in wallet balance is 0

past zenith
#

How come I suddenly have this bug, dont think I changed something

white cliff
#

Did you connect to some phishing sites?

glacial torrent
#

опять вы

uneven kite
#

I can’t send lp to mirza wallet can someone guide me for it?

spare jungle
#

Hi! I’m new to injective and I need some help!

uneven kite
spare jungle
#

I just bridged sol over to my injective hub, how do I turn that sol into inj?

uneven kite
spare jungle
#

I don’t have binance 😦

#

Can I convert on hub?

uneven kite
spare jungle
#

Is this right?

wise nova
#

Need to swap it on helix

#

Make sure to convert it to bank first

spare jungle
#

What’s that mean? Any pics?

wise nova
#

Check the wallet section at the hub

#

There's an option to convert here

spare jungle
#

This button?

wise nova
#

Yes

spare jungle
# wise nova Yes

It’s sol bank already I think, it’s asking me to convert from bank to cw20.

wise nova
#

Nice, now go to helix and trade it to usdt

spare jungle
spare jungle
#

Then from usdt I can convert to inj?

#

And which wallet do I connect to helix with? MetaMask or Keplr?

wise nova
#

Either is fine

spare jungle
#

You’re very helpful!!!

#

I have inj in my MetaMask wallet now! How do I put that in my keplr wallet instead?

wise nova
#

Can import your private key from metamask into keplr

#

It will be the same INJ address

spare jungle
wise nova
#

You can do that too yes

spare jungle
jade obsidian
#

Is it advisable to use the native bridge or buy from a CEX

hallow totem
winter crypt
#

I keep getting this failed message while trying to convert to bank. Anyone can help?🙏

minor junco
olive isle
#

Hey guys, who can I speak to about building a web3 game on injective?

weary yacht
broken jacinth
# uneven kite I can’t send lp to mirza wallet can someone guide me for it?

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.

frail fractal
runic moon
grand helm
#

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'
}```
grand helm
runic moon
broken jacinth
grand helm
broken jacinth
#

I suggest you using testnet sentry. If you have issues connecting you can post the error message for us to check it

grand helm
grand helm
exotic osprey
#

@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

worthy vale
#

is it only me, or the testnet is not working right now ?

broken jacinth
uneven kite
grand helm
#

sup guys, is there a way to onboard web2 users with an embedded inj wallet?

#

like privy

wise timber
ripe niche
#

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 🙏

lean parcel
ripe niche
#

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 🙏

lean parcel
ripe niche
#

Thank you

grand helm
tardy wing
#

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

tardy wing
#

all good figured it out

fathom sluice
#

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

forest flint
fathom sluice
#

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

fathom sluice
plush bear
#

Where I can verify my contact on INJ ?

unkempt cypress
#

hey

#

i heard that launching on injective smart contract take alot of time to approval

#

is this true?

fathom sluice
#

@hard spade are you active?

broken jacinth
fathom sluice
# hard spade It appears that the uriHash property is missing in your metadata object. Add the...

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
}

fathom sluice
broken jacinth
# fathom sluice

Are you sending the first denom unit as the error message is requesting you to do?

limber sphinx
#

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

real ermine
#

Hello

real ermine
#

who can teach me about how to integrate injective on my dapp

real ermine
#

But I have get error as like this