#🚀・dev-support

1 messages · Page 9 of 1

hardy wraith
#

i need specific page

kind flare
#

search

hardy wraith
# kind flare search

searched fetch, i can see fetch balance only there code.

simply give me link to specific article i will make it and be thankfulll to supportive inj team

hardy wraith
hexed lake
#

Hey guys.

When setting up INJ node, When running INJ chain + MongoDB for the first time. How long does this generally take. Docs says up to 48hrs.

sudo docker logs -f mongo shows logs still flowing and writing base gen.

how long can this go for ?

Thanks

orchid shard
#

I want to fix this:
RES=$(yes 12345678| injectived tx wasm store artifacts/inj_yoiu.wasm --from yodan --gas auto --gas-prices 160000001inj -y --home ~/.injectived)
gas estimate: 1026922
Error: error unmarshalling result: illegal base64 data at input byte 4
Why did I got this error?

orchid shard
#

Is there any injective developer?

topaz seal
#

Do you mean like the Helix's bots? Those bots are implemented with smart contracts. You would need to create an instance of a bot contract code that is configured for everyone to instantiate, or upload your own LP bot contract code and the instantiate it

fossil condor
#

@topaz seal Usually, how much does it cost to submit governance proposal to upload the smart contract to mainnet?

topaz seal
#

That just not to mention that the error message is already telling you how much the minimum deposit should be (but you might want to provide the full deposit, not just the minimum, to allow voters to actually vote for the proposal)

fossil condor
#

@topaz seal okay, got it

fossil condor
topaz seal
#

you can use a contract code already uploades if it is configured to be instantiated by everyone

fossil condor
#

@topaz seal btw... is it necessary to spend funds to upload the smart contract to mainnet?
Or can I upload the smart contract for free if I create my own node?
sorry for bothering you at the moment 🙏

topaz seal
hardy wraith
#

@topaz seal
error is attached my code is:

import React from 'react';
import { IndexerGrpcExplorerApi } from '@injectivelabs/sdk-ts';
import { getNetworkEndpoints, Network } from '@injectivelabs/networks';

const Test = () => {
const inspectTx = async () => {
const endpoints = getNetworkEndpoints(Network.Testnet);
const indexerGrpcExplorerApi = new IndexerGrpcExplorerApi(endpoints.explorer);

const txHash = 'FCC2717F5BD295723CC7DF5173EEA92E970BEA4F731F0C8259EB39B0764F9056';

try {
  const transaction = await indexerGrpcExplorerApi.fetchTxByHash(txHash);
  console.log(transaction);
} catch (error) {
  console.error('Error fetching transaction:', error);
}

};

return (
<div>
<button onClick={inspectTx}>Inspect Transaction</button>
</div>
);
};

export default Test;

topaz seal
hardy wraith
#

lemme test http doc from u guys, then will ask if stilll error

hardy wraith
# topaz seal That error is not related to Injective, but to your local web or app server.

Access to XMLHttpRequest at 'https://testnet.exchange.grpc-web.injective.network/api/explorer/v1/txs/FCC2717F5BD295723CC7DF5173EEA92E970BEA4F731F0C8259EB39B0764F9056' from origin 'http://localhost:3000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

means http req is not allowed too now, i mean somehow, inj is giving balances via both grpc and http api to my site without bliocking, but if i fetch tx from same site it give CORS error

#

@topaz seal I not got it, its wroking on local node js environment too
but not in browser i think

#

@topaz seal even https not working

hardy wraith
#

@topaz seal look, i seen alll docs, inj is code good.

but thing is somehow inj api is not allowing my req to fetch ts
i tried on local host
i tried on vercel next js server api

it works fine on node files seperately like i shown, is inj not allowing sites to fetch data?

#

i literally spent last 3 hours on this, kindly now dont say search yourself etc, i am tired now of same error

#

i willl like to be helped, thanks very much

#

Allll i want is somehow get tx details in my next js app

#

simple yet i dunno why am stuck on simple thing,

#

@topaz seal @kind flare
pic is attached, its error if i try with grpc method, http method simply gives way tooo many errors, i just wanna know how can i not be blocked from accessing response? as this clearly say inj is blocking response

kind flare
#

use Network.TestnetSentry

hardy wraith
hardy wraith
kind flare
#

Don't discourage yourself, I've built this thing, that's why I know it by heart

hardy wraith
orchid shard
#

Anyway how can I get INJ price on smart contract layer for testnet?

#

I got the price on Mainnet successfully with pyth contract - inj12j43nf2f0qumnt2zrrmpvnsqgzndxefujlvr08

#

but on Testnet not!

#

plz help me

hardy wraith
viscid venture
#

Should I send you a dm?

orchid shard
#

Not yet 😦

peak nova
#

Hello builders! New team here starting to build on Injective! Big fan and early investor. I have some questions about decoding in JS (TS) - I hope someone here could provide some assistance.

peak nova
hardy wraith
kind flare
hardy wraith
#

thanks for help again

carmine anvil
#

hmmm

gaunt bolt
untold wren
#

Is terra to injective bridge down?

orchid shard
#

How can I get INJ price on smart contract layer for testnet?
I got the price on Mainnet successfully with pyth contract - inj12j43nf2f0qumnt2zrrmpvnsqgzndxefujlvr08
but on Testnet not!
plz help me

blazing rock
#

Hello everyone, i am trying to analyze some injective explorere Tx's, running into a error tho when i try to load the first page of the contract (contract has over 10k+ transactions). I have tried on injective explorer aswell as on mintscan. Anyone have a solution to this? Error is "Network error: Unable to fetch transaction"

tall plover
#

Hello, I'm using token station to build my token on Injective and I have a few questions before launching it

#

1-how can I revoke my authority to mint?

#

2-when I pay the 20 INJ to launch my token will it list on some dex

#

3-what should I fill these with

#

4-is it possible to make a legitimate presale with the help of token station

#

that's it for now, would be very helpful if someone can answer some of these

#

thank you!

oblique copper
tall plover
#

and sorry if some of my questions are looking stupid or unprofessional but I'm new to this

oblique copper
#

For airdrop you can airdrop any token as long as they are in your wallet.

#

Best to test out stuff on testnet first just to make sure you're doing everything fine.

#

And no, it won't list on DEX like Helix, etc., it'll just launch a market for it on chain exchange which can be traded in.

tall plover
#

could I list it later in an exchange?

oblique copper
#

Helix is just a frontend for the markets on chain so if they decide to list it or not depends on them.

oblique copper
#

But depends on that specific exchange.

tall plover
#

thank you

hardy wraith
#

@topaz seal inj fee to create token stilll applicable?
also if yes, then how dojoswap makes cw tokens without this?

#

i made test token there, costed less than a dfollar only

#

how they do it while if we make voia msgmint msgcreate denom etc, then it cost us around 10 inj why?

hardy wraith
#

@topaz seal

topaz seal
#

Also, all this info is detailed in the docs. Once again I see myself asking you to please read the docs before posting questions and tagging InjectiveLabs team

hardy wraith
hardy wraith
topaz seal
#

CW20 is a standard for tokens in Cosmos (similar to ERC20 in Ethereum). They are supported in Injective and they behave like a native token.
Native tokens on the other hand don't depend on a contract to be used (like CW20 tokens), all their logic is already part of the Injective chain implementation

hardy wraith
topaz seal
#

that will depend on the functionality you want to give to the token. A contract token will support all the functionality implemented in the token. The native token has only the basic token functionality

hardy wraith
hardy wraith
#

but i am not even fimiliar with cw token or how to create it, can i get a doc reference to it?

hardy wraith
#

@topaz seal i had a working code for native tokens making, but i lost due to some problemw ith my previus latop, tody made code again, ran successfully, but inj explorer showing this:

my code is attached too:

topaz seal
#

And what is the error? I don't see any error. Did you post it?

hardy wraith
topaz seal
#

Token verification is a process separate from token creation.

hardy wraith
#

my previus code shown tokens like this
(ignore price and value, rest same)

#

@topaz seal as i made this token with my previus code, i dont remember but it was some one liner change https://explorer.injective.network/asset/?denom=factory/inj19xadglv3eaaavaeur5553hjj99c3vtkajhj4r6/Lenz&tokenType=unknown

Injective Explorer - Visualize and search for data on the Injective Chain

The Injective Explorer is an analytics platform that enables anyone to search addresses, trades, tokens, transactions, and other activities on the Injective Chain.

tall plover
#

does anyone know why my token doesn't appear to have a logo? I tried uploading png and webp

hardy wraith
#

@topaz seal can u tell me why this is happening?

topaz seal
#

One more evidence that the information is available for anyone actually making a little effort to find it: https://docs.ts.injective.network/readme/token-metadata#token-verification
As I mentioned before: a process separate from token creation.
Don't bother tagging me in more messages, I will stop replying to questions that have been addressed in the docs (and also have been discussed here in Discord, and are easily found using the search box)

hardy wraith
#

i have sent multiple successfulll tx of MsgSetDenomMetadata
but its stilll shows unverified

#

I got it @topaz seal

#

its empty, but it cause typos

#

thius causing erros

#

whats this display used in code?

#

as its not callled in code

#

@topaz seal in short:
I have ran on chain metadata creation function, it worked, given tx hash, and details in tx showing correct
But it dont make my token internally verified

#

👆Literally me from past 2 hours, when my code works, but somehow token not internally verified

#

there is some problem with denom unit and denom display in code, only these 5-6 lines causing problem

tall plover
#

I updated both logo and name in metadata on token station but when I checked after some time only the name was updated and the logo never appeared

elder dune
#

Hey! for the logo - should we upload the token image somewhere or is it going to be the one in the ipfs when we init the token and the logo name is like an alt for it ?

woeful moon
#

is the explorer http api down

oblique copper
#

The image should have same name as you have specified in metadata.

oblique copper
oblique copper
hardy wraith
#

@oblique copper can u spot any p[roblem in this function?

async function MetadataCreate() { const denomUnitsIfTokenHas0Decimals = [ { denom: denom, exponent: 0, aliases: [subdenom], }, ]; const denomUnitsIfTokenHas6Decimals = [ { denom: denom /** we use the whole denom here */, exponent: 0, aliases: [micro${subdenom}`],
},
{
denom: subdenom,
exponent: 6 /** we use the subdenom only here (if you want your token to have 6 decimals) */,
aliases: [subdenom],
},
];
const displayIfTokenHas6Decimals = subdenom;
const displayIfTokenHas0Decimals = [];

const msg = MsgSetDenomMetadata.fromJSON({
sender: injectiveAddress,
metadata: {
description: "Testone is this" /** description of your token /,
denomUnits: denomUnitsIfTokenHas6Decimals,
base: factory/${injectiveAddress}/${subdenom} /
* the base denom /,
display: "Testone",
name: "Testone" /
* the name of your token /,
symbol: "MYTOKEN" /
* the symbol of your token */,
uri: "https://d391b93f5f62d9c15f67142e43841acc.ipfscdn.io/ipfs/bafybeid5fxsq6x7d5lrlq5pocszvzlb4qomwxn6wmz6alzwmezo3qvvw6u/4.sm.webp",
// uri: "ipfs://QmWmJG7Lct49DMprg9wjKiEbdkbx7TQ7yjs5dVX8xx4S7E/4.sm.webp",
},
});

const txHash = await new MsgBroadcasterWithPk({
privateKey,
network: Network.Testnet,
}).broadcast({
msgs: msg,
});

console.log(txHash);
}`

#

The probvlem am getting is even if this func run successfully, and i get tx hash, explorer dont show token internally verified

#

show unverified

#

hi mate, am facinf similiar problem, i think due to this metadata tx runs, but explorer cant fetch dats on chain

lime ruin
#

Yep, the requests to endpoints were failing, team just fixed it.

hardy wraith
#

can u review my metadat code, it runs successfully to update metadata of token, but thing is it dont change v erification status to internally verified in explorer

hardy wraith
#

@kind flare sorry to tag,

but i think no one is able to answer my q.
setdenom metadata func is not making token internallly verified on explorer, rather show unverified.

Even though transaction is successfull.

here is my func of metadata:

async function MetadataCreate() { const denomUnitsIfTokenHas0Decimals = [ { denom: denom, exponent: 0, aliases: [subdenom], }, ]; const denomUnitsIfTokenHas6Decimals = [ { denom: denom /** we use the whole denom here */, exponent: 0, aliases: [micro${subdenom}`],
},
{
denom: subdenom,
exponent: 6 /** we use the subdenom only here (if you want your token to have 6 decimals) */,
aliases: [subdenom],
},
];
const displayIfTokenHas6Decimals = subdenom;
const displayIfTokenHas0Decimals = [];

const msg = MsgSetDenomMetadata.fromJSON({
sender: injectiveAddress,
metadata: {
description: "Testone is this" /** description of your token /,
denomUnits: denomUnitsIfTokenHas6Decimals,
base: factory/${injectiveAddress}/${subdenom} /
* the base denom /,
display: "Testone",
name: "Testone" /
* the name of your token /,
symbol: "MYTOKEN" /
* the symbol of your token */,
uri: "https://d391b93f5f62d9c15f67142e43841acc.ipfscdn.io/ipfs/bafybeid5fxsq6x7d5lrlq5pocszvzlb4qomwxn6wmz6alzwmezo3qvvw6u/4.sm.webp",
// uri: "ipfs://QmWmJG7Lct49DMprg9wjKiEbdkbx7TQ7yjs5dVX8xx4S7E/4.sm.webp",
},
});

const txHash = await new MsgBroadcasterWithPk({
privateKey,
network: Network.Testnet,
}).broadcast({
msgs: msg,
});

console.log(txHash);
}
`

#

sorry to bother, u but i had a working code before, i remeber it was some syntax difference, bt i got my that laptop formtted due to some reasons now need new code.

hardy wraith
#

this is problem mate

#

look,i ran multiple times, but not updated on token in explorer

#

As u said @kind flare i already read docs throughly, and i knew this page before, but thing is even after running func, mmtadata is not shown in explorer, even if metadata tx is successfull

kind flare
#

You are not doing something right then

hardy wraith
kind flare
#

I'm going to redirect you again to the docs as they clearly worked and the examples there have been tested before, so the issue is on your side and we don't debug codes.

hardy wraith
kind flare
hardy wraith
kind flare
#

As stated multiple times before, we are not going to debug code or offer help for syntax issues in your code. Please read the documentation or use tooling (for example VSCode with intelisense) that'll help you fix these issues on your own.

#

Do not blindly copy and paste the documentation, try to learn a bit about it and how it works before using it.

hardy wraith
# kind flare Do not blindly copy and paste the documentation, try to learn a bit about it and...

bro, what should i do ?
if i am working on same issue from the whole night
if i not copy pasted, rather worked on it and removed other normal sytax issues
I have made tokens before, but now error coming with same code whom should i ask?
I already and in real read docs, not blindly copy pasted.

Alll i am asking is after alll that, according to docs token must internally verified, its not.
so there must be issue in token metadata func
its only 10 lines of code
Being a you a superir dev, i came here as junior dev to seek guidence, and get any mistake which i cannot point, pointed out by you.

This is last place where one come if he got issue with inj\

hardy wraith
kind flare
hardy wraith
#

wrong denom subdenom means?
second point verifiecation not done for new tokens, can u tell me on chain verification is also not done or only that git rep verification u talking, i only need internal verification

oblique copper
#

Or alternatively just paste the denom of your token here as the value of base:

// for example setting for qunt

const msg = MsgSetDenomMetadata.fromJSON({
  sender: injectiveAddress,
  metadata: {
    base: 'factory/inj127l5a2wmkyvucxdlupqyac3y0v6wqfhq03ka64/qunt', /** the base denom example */
    description: 'Qunt token', /** description of your token */
    display: 'qunt', /** the display alias of your token on UIs (it's the denom of the unit with highest decimals) */,
    name: 'Qunt', /** the name of your token */,
    symbol: 'QUNT' /** the symbol of your token */,
    uri: 'ipfs logo url' /** the logo of your token, should be hosted on IPFS and should be a small webp image */
    denomUnits: denomUnitsIfTokenHas6Decimals  /** choose if you want to have 6 or 0 decimals for the token */
  }
});
oblique copper
#

Like, can't the Injective hub use the internally verified metadata to display tokens on wallet page if it's not available in metadata package?

#

Or....is it due to security reasons?

hardy wraith
#
Injective Explorer - Visualize and search for data on the Injective Chain

The Injective Explorer is an analytics platform that enables anyone to search addresses, trades, tokens, transactions, and other activities on the Injective Chain.

hardy wraith
oblique copper
#

Eh, I must be remembering it wrong then, I do remember factory tokens being displayed as unknown, anyways ty.

hardy wraith
oblique copper
#

Nah, I'm talking in context of Injective hub.

hardy wraith
#

i have verified internally via set denom metadata, still it show unverified on explorer

hardy wraith
#

after using setdenommetadata func

oblique copper
#

Sorry, but not really sure, maybe you can summarize your issue in complete detail, together with your code which you tried with and someone might be able to help.

hardy wraith
#

Here is my function code:
async function MetadataCreate() { const denomUnitsIfTokenHas0Decimals = [ { denom: denom, exponent: 0, aliases: [subdenom], }, ]; const denomUnitsIfTokenHas6Decimals = [ { denom: denom /** we use the whole denom here */, exponent: 0, aliases: [micro${subdenom}`],
},
{
denom: subdenom,
exponent: 6 /** we use the subdenom only here (if you want your token to have 6 decimals) */,
aliases: [subdenom],
},
];
const displayIfTokenHas6Decimals = subdenom;
const displayIfTokenHas0Decimals = [];

const msg = MsgSetDenomMetadata.fromJSON({
sender: injectiveAddress,
metadata: {
description: "Testone is this" /** description of your token /,
denomUnits: denomUnitsIfTokenHas6Decimals,
base: factory/${injectiveAddress}/${subdenom} /
* the base denom /,
display: "Testone",
name: "Testone" /
* the name of your token /,
symbol: "MYTOKEN" /
* the symbol of your token */,
uri: "https://bafybeige2onhyaycokh63bjxh4ireydhyhdzm2aqgeg44rbc5wbna2zmhe.ipfs.dweb.link/LenzLogo.png",
// uri: "ipfs://QmWmJG7Lct49DMprg9wjKiEbdkbx7TQ7yjs5dVX8xx4S7E/4.sm.webp",
},
});

const txHash = await new MsgBroadcasterWithPk({
privateKey,
network: Network.Testnet,
}).broadcast({
msgs: msg,
});

console.log(txHash);
} `

#

@oblique copper i had a wroking code beforee, i formatted my drive, its non-recoverable.
All i can remember is i changed some syntax in metadata func which made it work

oblique copper
#

Random guess, but are you sure - can be in symbol?
Maybe try with something like INJTEST

hardy wraith
oblique copper
tall plover
oblique copper
#

Token metadata package is where Injective dApps get the token information from such as logo decimals cw20s etc.

#

So if you want to let your token display correctly on those dApps which use that package then you'll need to add the metadata there.

#

Btw it isn't code, it's simple JSON data bro.

#

Just check other pull request for reference and you can

#

create your metadata by taking them as example and then create a pull request for it.

tall plover
#

do I need to create some files or do I do it in github I'm kinda lost

oblique copper
# tall plover any idea where I put them?

Go to that GitHub repo, fork it, make changes to token.ts file, this is the path to it:

injective-ts/blob/dev/packages/token-metadata/src/tokens/tokens/tokens.ts

add your token's metadata there, check other pull requests for reference on how you can.

#
injective-ts/tree/dev/packages/token-metadata/src/images

This is where you'll put your token's logo.

#

If you need help on how you can fork, create pull request etc then check any YouTube video on that.

simple whale
oblique copper
#

Btw stay careful from scammers who DM you.

simple whale
#

i agree

when launching a token on token statioin does decimals be related to supply?

#

and how to choose the supply if i'm building the token on the station?

oblique copper
#

No, decimals are like

#

the token decimals which your token have

#

Like if your token has 6 decimals

#

1000000 = 1

#

This is kinda how you'll fill the number o tokens anywhere in any TX, etc.

#

If you query the chain for balance of a account

simple whale
#

got it but how to choose the supply?

oblique copper
#

the chain will return the tokens in that account in decimal denoms

#

like if that account has 1 INJ

#

and INJ's decimals are 18

simple whale
#

okay awesome is revoking mint authority is the same as burn?

oblique copper
#

then what you'll get in the query is 1000000000000000000

#

1e18

oblique copper
oblique copper
simple whale
#

i don't know if it's same thing

oblique copper
simple whale
oblique copper
#

If you did then then the supply can be changed by minting tokens.

simple whale
#

before spending money

oblique copper
#

When you create token, you enter the initial supply.

simple whale
#

don't know how this calcluated

oblique copper
#

And when you mint: you add more tokens to supply.

oblique copper
simple whale
#

okay got it

oblique copper
#

Like I said, if your token has 6 decimals then:
1000 token = 1000000000 in decimal units

simple whale
elder dune
oblique copper
#

Explained up there to other guy

simple whale
oblique copper
#

Verification is only if you want your token to be supported on most of the Injective dApps

simple whale
oblique copper
#

For the chain the whole supply is in circulation

#

If you wanna lock the tokens then you might need to do through some contract which has logic for that, or implement something else

#

Oh, and through the create token section you create the token

#

Like make a new token

#

For example I can fill in the details there and make a REINC token or smth

oblique copper
#

example

#

You make new token through that page

#

Just fill in the details and create the token that's it.

Now once you do that you can go to manage token tab to mange the token you created, such as mint more, burn, mint more, change admin or remove admin

simple whale
oblique copper
#

Guess so, gl with your token

elder dune
lime ruin
#

Just check back later.

hardy wraith
hardy wraith
#

Just got freind req by inj support, wow, hahahahahahahahaha, will like to get real one, i am tired of 2 days of same error in token metadata

hardy wraith
topaz seal
hardy wraith
elder dune
earnest cypress
topaz seal
#

As soon as the team is ready to review it. No ETA, but for sure not during the weekend

earnest cypress
#

I imported data from a pre-existing token on the mainnet into the testnet to perform some tests, but the settings as creator are different and the token was not updated on the network, how can I fix this?

hardy wraith
#

@topaz seal updfate done now?

woeful moon
#

is the airdrop distrubution file supposed to be in big int form ? like with 18 zeros if you have 18 decimals ?

#

math/big: cannot unmarshal "4.0008e+24" into a *bi ...

topaz seal
woeful moon
covert anvil
woeful moon
#

it looks like a javascript error because it cannot handle those big numbers

silver jay
#

I'm new to INJ (from a technical standpoint) but diving in head first. Something I like to do is clone the relevant repos and get a full clone up and running locally to learn the platform. Will someone pretty please give me a short list of which repos are required to do this to give me a jumpstart? And to be clear, I'm not talking about spinning up a validator. I mean the entire chain. It's how I learn yoooo.

Thanks in advance

simple drum
#

How do i convert my token from tokenfactory to cw20? can someone help please

#

or do i need to create cw20 token from the start?

lime mountain
#

Yes, has to be done from the start imo

simple drum
#

or tokenstation already has it?

lime mountain
#

Yes tokenstation

simple drum
#

or do i need to create a tokenfactory token first and then launch market for it? will it turn to cw20 then?

woeful moon
#

code id 357

simple drum
woeful moon
#

go to dojoswap ui create token and look at the tx it produces

simple whale
#

how long it take for my token to verify

spice sail
#

I want to make a swap with typsecript on coinhall. I found the msgexecutecontract (-compat) in the docs. I just want to execute smart contract for market price. I do not understand 100%. Anyone can explain quickly what information i need? The contractaddress for compact and also the recipient for normal msgexecutecontract (transfer) but how would i know the recipient if i just want to swap my inj for a token on coinhall

Also, what is the meaning of the "test" as action? And what should be standing there?

lime ruin
#

For native market swaps you'll need to create spot markets orders on the on chain markets to do it.

spice sail
lime ruin
hardy wraith
#

@topaz seal are testnet apis down right now?
Error verifying transaction: Error: Service Unavailable
at IndexerRestExplorerApi.<anonymous> (/var/task/node_modules/@injectivelabs/utils/dist/cjs/classes/HttpRestClient.js:55:65)
at Generator.throw (<anonymous>)
at rejected (/var/task/node_modules/@injectivelabs/utils/dist/cjs/classes/HttpRestClient.js:6:65)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
type: 'http-request',
code: 503,
originalMessage: 'Service Unavailable',
name: 'HttpRequestException',
errorClass: 'HttpRequestException',
context: 'txs/9BB0BA46EAEF56DAE1DBEC937FAC9FAB7F48C01C9061FA9981C7CA2D658D0BA3',
contextModule: undefined,
method: 'GET'
}
using mesg send to send some nativew inj tokens, was working before

#

and fetching tx id details from api

#

its get req, means its error in fetching tx details problem

#

@topaz seal
Oh look like whole explorer is down, i thought i messed my code up again, phew, its not my fault, i hope servers come alive again

#

soon

earnest cypress
#

check please it's for testing a big project it can't wait
#445 opened yesterday by catripilar

topaz seal
earnest cypress
#

#445 is the PR number for injective-dev of a new token...

topaz seal
hardy wraith
#

@topaz seal @kind flare
Yo hooo, This tagging is not for problem, its for thanks, I mean look at pic, how good it looks internally verified with 6 decimals!
Thanks again

||(Lemme see problem with my img though 😊 )||

hardy wraith
shut crow
#

Please how can deploy a token to coinhall and dojoswap

#

PS: it is not a cw20 token

topaz seal
#

Please contact those dapps' support team

topaz seal
#

You can find the taker and maker fees in the market info

keen prairie
#

Is it possibile, from inEVM moduele, to interact with the wasm module? And the exchange or auction modele?

hardy wraith
#

@topaz seal Are token facotry 10 inj token making fees removed?
just made native token costed only 0. inj around

#

i made in december one for a client, coste 10 inj + fees of tx

topaz seal
topaz seal
next smelt
#

is there anyone who has experience of solving this issue
out of gas in location: wasm contract; gasWanted: 400000, gasUsed: 422098: out of gas
if you have ever solved this, could you help me?
i am using injective/sdk with typescript

next smelt
topaz seal
next smelt
mellow kelp
#

@topaz seal I I’ve been trying to join the telegram but it says group is private

topaz seal
#

!links

wild frigateBOT
topaz seal
#

Would it be possible for you to provide the subaccount id to investigate it?

ivory tundra
#

booombastis

covert anvil
#

I need a script to organize/collect, in a CSV file, the transactions of an Injective wallet, including date, hash, address sender and receiver, amount sent/received.
Unfortunately, the tool available at stake.tax does not have information about the wallet that sent the amounts.
How can I get such a script? I don't understand programming. Thanks to anyone who can help.

topaz seal
#

I checked one case for a trade that caused a fee to be charged to you, and I see there is no error. The order referenced by that trade has order_type "BUY", not "BUY_PO"

{
   "orders":[
      {
         "orderHash":"0xc630bae811f0354258bb4738a63d59ca8609e0f0988c85d436852cba245d3def",
         "marketId":"0xa508cb32923323679f29a032c70342c147c17d0145625922b0ef22e955c844c0",
         "subaccountId":"0xee7fe3b8a43a96580610aae6db2bbfd363bf5ce6000000000000000000000001",
         "executionType":"limit",
         "orderType":"buy",
         "price":"0.000000000038096",
         "triggerPrice":"0",
         "quantity":"25000000000000000",
         "filledQuantity":"25000000000000000",
         "state":"filled",
         "createdAt":"1711619872248",
         "updatedAt":"1711619872248",
         "direction":"buy",
         "txHash":"0x0000000000000000000000000000000000000000000000000000000000000000",
         "cid":"30b8de9b-c29f-40e6-a96c-098b0b39cac5",
         "isActive":false
      }
   ],
   "paging":{
      "total":"1",
      "from":0,
      "to":0,
      "countBySubaccount":"0",
      "next":[
         
      ]
   }
}
#

That means that the order was a normal limit order, not a post only order

#

As a result in this case the trade was executed as "taker", and for that you were charged a fee

simple whale
#

guys
when verifying to Astroport Token Lists
how to know my originChainId or can i leave it empty

thin karma
#

Is there a way to retrieve all holders of a token

#

@topaz seal

lusty spruce
#

Is the code for the grid trading bots on helix available ? I can't find it on helix github

topaz seal
empty kettle
#

One question
How can I query the wasm contract with RPC endpoint?
I've seen that inj-ts uses the ChainGrpcWasmApi. (grpc endpoint)
But, I'd like to know if there is rpc query I can use.

topaz seal
# thin karma Ts no ?

Well, once you know the query you need to run, you should be able to do it from any of the SDKs

topaz seal
topaz seal
earnest cypress
#

Personally, I have a doubt about the use of the migration technique, there is a contract that needs to be updated that is already active on the mainnet, but I would like to know how to effectively "update" the contract so that a new governance request is not necessary to wasm-store etc, is this possible?

earnest cypress
#

"First, you must write a newer version of the contract you wish to update. Second, you can upload the new code as you did before, but don’t instantiate it."

This is what is making me doubt "upload the new code" since the upload would be carried out by wasm-store but this requires governance approval, correct? like "submit-proposal wasm-store" because the update system needs to know the update data is there any way to do this without governance approval as is done in the "wasm store" testnet

covert anvil
#

Hello! I need tools to operationalize a CW20 token airdrop. Basically:

  1. reading/transporting data from injective explorer (wallet sender address + amount sent) to csv file.
  2. Based on the above file (csv): airdrop (multi sender) (different quantities) + refund.
    Any developers interested in helping me?
spice sail
#

still not fixed

#

i need msgexecutecontract(compat) for sending cw20 tokens right

spice sail
spice sail
#

does it mean i couldn't send my token to 1000 people with the gas limit? Whats the way to go there?

#

Also, i would want to send them more or less within a short period of time

ocean arch
#

I have a problem when I try to stream orderbook from derivative exchange.
I use the code given here : https://api.injective.exchange/#injectivederivativeexchangerpc-streamorderbooksv2
I have no result with this code but when I try another market id I get this error:
DeprecationWarning: There is no current event loop
asyncio.get_event_loop().run_until_complete(main())
There was an error listening to derivative orderbook snapshots (<AioRpcError of RPC that terminated with:
status = StatusCode.UNAVAILABLE
details = "Received http2 header with status: 502"
debug_error_string = "UNKNOWN:Error received from peer {grpc_message:"Received http2 header with status: 502", grpc_status:14, created_time:"2024-03-29T17:35:06.2134526+00:00"}"

)
The derivative orderbook snapshots stream has been closed

#

I tried the KAVA/USDT market id : 0x2d8b2a2bef3782b988e16a8d718ea433d6dfebbb3b932975ca7913589cb408b5

blazing rock
#

Can someone tell me why i get the error „failed to get subaccount: object not found“ when i try to request subaccount balance on testnet? I get the subbaccount id from Subaccountslist request and also on injective explorer i get the wallet address when i search with that subaccount id

topaz seal
topaz seal
ocean arch
#

Here is the code :


import asyncio
from typing import Any, Dict

from grpc import RpcError

from pyinjective.async_client import AsyncClient
from pyinjective.core.network import Network


async def orderbook_event_processor(event: Dict[str, Any]):
    print(event)


def stream_error_processor(exception: RpcError):
    print(f"There was an error listening to derivative orderbook snapshots ({exception})")


def stream_closed_processor():
    print("The derivative orderbook snapshots stream has been closed")


async def main() -> None:
    # select network: local, testnet, mainnet
    network = Network.testnet()
    client = AsyncClient(network)
    market_ids = []

    task = asyncio.get_event_loop().create_task(
        client.listen_derivative_orderbook_snapshots(
            market_ids=market_ids,
            callback=orderbook_event_processor,
            on_end_callback=stream_closed_processor,
            on_status_callback=stream_error_processor,
        )
    )

    await asyncio.sleep(delay=60)
    task.cancel()


if __name__ == "__main__":
    asyncio.get_event_loop().run_until_complete(main()) 

topaz seal
topaz seal
ocean arch
topaz seal
ocean arch
topaz seal
#

no problem

hardy wraith
topaz seal
hardy wraith
hardy wraith
#

in next js app i mean

hardy wraith
#

@topaz seal can u plot some light on this?

topaz seal
#

The thing is those are network configuration that use the public nodes. You should be using your own private node ideally.

arctic flax
#

greetings everyone. Where can i deploy cw20 contract on inj

thin karma
#

@topaz seal couldn’t find any query to get holders for a token on inj

topaz seal
spring temple
#

Good day, fam, I am a full stack blockchain developer and looking for a challenging project to work on.
I have extensive experience in dapp development.
Please let me know if you are interested.

hardy wraith
#

@topaz seal
if we send token to zero address they are burned or just transfered, if we wanna burn tokens we need to speaciallly use MsgBurn function or we can simply send to zero adress too?

#

Like if we send to zero address, does supply number go down in token info on explorer, or only MsgBurn usage can do that?

topaz seal
#

You have to use the MsgBurn for TokenFactory tokens

empty kettle
#

I have one question.
Where can I query the cw20 token balance of smart contract account?
FYI, I've used injective explorer, sdk-ts, sdk-python, lcd swagger endpoints.
The issue is that explorer is showing the balance different from lcd, sdk-ts queries.
For example, the explorer says the contract has 100 token, while others show 105 tokens.
I'd like to know where else I can query the cw20 token balance(essentially smart contract state).

hardy wraith
#

packages/token-metadata/src/tokens/tokens/tokens.ts
i know this file, but i dunno how to create pull req,i mean i am sorryto say it, but i opened repo in code space of github, pated this:

DDL: {
name: 'Discordels Token',
logo: 'DDL.png',
coinGeckoId: '',

tokenFactories: [
  {
    creator: '  inj1put8lfpkwm47tqcl9fgh8grz987mezvrx4arls',
    symbol: 'DDL',
    decimals: 6,
  },
],

},

but all file turned red with typos, i dunno how to add my this info to your repo, thaqts my issue, i know its little silllyu, basic issue, but i am confused.

I hope u can guide me @topaz seal bro, i will be thankfull.

hardy wraith
#

@simple whale Can u explain this metadata adding in repo here?
I will be thankfull, i seen u did before

empty kettle
topaz seal
devout totem
#

How can I edit governance propsal's title and summary>

hardy wraith
#

@topaz seal can u see my q too?

devout totem
#

Support team

#

I run script that governance.
But title and summary are not effected.

#

So displayed like this.
title: Proposal Title
summary: Proposal Summary

topaz seal
topaz seal
glossy adder
#

Hello fam! I was just wondering, is there a way to simulate Injective Smart contract execution without actually uploading the contract to the network?

I have been playing with Injective for a while and it seems like a lot of steps (build, optimize, upload, instantiate, and test) every time you want to make a change and verify everything works.

fossil condor
#

I need to create a new token on injective based on this smart contract.
https://github.com/CosmWasm/cw-plus/tree/main/contracts/cw20-base
Do I need to deploy this contract to mainnet and instantiate contract from that one?

Or if I use the injective token factory following the injective documentation, is it based on the cw20-base smart contract?
https://docs.injective.network/develop/guides/token_launch/

@topaz seal could you guide me with this one?

GitHub

Production Quality contracts under open source licenses - CosmWasm/cw-plus

To launch a token on Injective, you can do so via TokenStation, DojoSwap or via the injectived CLI.

topaz seal
fossil condor
# topaz seal You can use any current deployed CW20 contract code to instantiate your contract...

Thank you for your response, Abel
So to use cw20-base contract, can I use the code id you provided?
#🚀・dev-support message
And then what could be the denomination of the token if we instantiate from that code?

If I instantiate a cw20-base contract, then the token denomination will be the same as the contract address: inj.....
What will it be if I instantiate a contract on the mainnet?
And btw... how can we launch our new token on injective mainnet with its own symbol?

topaz seal
fossil condor
topaz seal
#

To transfer tokens from a sender to a receiver for a CW20 contract, you have to interact with the contract

fossil condor
topaz seal
toxic forge
# fossil condor not a Cw20 contract address? really? Is it impossible to write Cw20::Denom like...

To send the token within Injective, you need to execute the CW20's "transfer" function. you can do this through whatever means you like. Probably most straight forward is to add the cw20 "token address" to whatever wallet you're using and let it execute it. Otherwise, if you need to transfer it via IBC to some other network (which I don't think is possible at the moment on Injective, but correct me if I'm wrong), you need to build the so-called IBC denom.

#

@topaz seal What would the most direct and standard way be to get social signup/login working with an Injective dapp? I went to install web3auth but I didn't see Injective listed as a supported chain.

#

So I'm wondering what FE wallet provider lib Injective Hub is using, for example.

#

Ultimately, I'd like to have a modal with options to connect with Keplr, Leap, etc. or with social auth via web3auth or, say, Torus

topaz seal
fossil condor
fossil condor
#

I am going to upload and instantiate the smart contract on the mainnet.
Could you answer the following questions for me?

  1. Once we submit to mainnet, are we able to push other smartcontracts without paying the fee again?
  2. Is 10inj enough for us to get approved or will it be 100?
  3. What is the likelihood of us getting denied and having to resubmit?
oblique copper
# fossil condor I am going to upload and instantiate the smart contract on the mainnet. Could yo...
  1. When you create a proposal for MsgStoreCode, it's to upload your smart contract code to mainnet so you can use the code which you upload to initiate several smart contracts using that code, if you wanna upload another code again then you'll need another proposal.

  2. You'll need to initially deposit minimum 50 INJ to post the proposal, the minimum deposit required is 100 INJ so others can contribute to the rest 50 INJ deposit required, or you can just initially deposit 100 INJ to skip that.

  3. Depends on how well detailed you write your proposal and make sure to start a discussion about it on https://gov.injective.network/ first to discuss about it get the community opinion and views about your proposal, also open sourcing the code of your smart contract might increase the chance of it being approved.

You can check the procedure of the proposal here: https://blog.injective.com/en/injective-governance-proposal-procedure/

And make sure to test everything on testnet first before you actually do it. :)

fossil condor
hardy wraith
#

this will be lot helpfull

#

or no problem, u can guide me too

tired pivot
#

Is the source code for Injective chain open source? I'm trying to learn if Injective has ICS-29 (relayer incentivization fee middleware) enabled but I can't find the correct repo.

topaz seal
hardy wraith
#

as you cant do it, which is fine, kindly guide me on it

#

I seen contribution guide page

#

from token facotry ts doc pagelink

#

i seen repo

#

i know i need to add this in tokens.ts:

DDL: {
name: 'Discordels Token',
logo: 'DDLlogo.png',
coinGeckoId: '',

tokenFactories: [
  {
    creator: '  inj1put8lfpkwm47tqcl9fgh8grz987mezvrx4arls',
    symbol: 'DDL',
    decimals: 6,
  },
],

},

#

But i dunnow how can i take this code, go to repo, and add my code to repo?
I mean what i gotta do to commit my code to ur repo?

topaz seal
hardy wraith
#

hanks

hardy wraith
# topaz seal Sorry, we don't provide personal guidance on this because your question is not I...

Look, this is commit for nonja token and root token, its a past successfull comit.

Its commit to :
packages/token-metadata/src/tokens/tokens/tokens.ts
which by my perspective it this file:
https://github.com/InjectiveLabs/injective-ts/blob/dev/packages/token-metadata/src/tokens/tokens/tokens.ts

i think i am going to wrong file or my code have errors, can u kindly see it? i literllly edited nonja syntax for my token code, but if i go to tokens.ts in codespace and paste it, it becomes red.

#

i got cotrrectly in codespace commited, but this error shows while commiting to repo

#

I think ia am getting it @topaz seal , almost near to solve it

#

Did it @topaz seal wow, thanks for help, i hope it gets approved

#

yooo hoooo done it bro, lets see approved or not

fossil condor
topaz seal
fossil condor
#

@topaz seal Could you guide me for some issues on my end regarding the governance?

  1. I need to create a cw20 token on mainnet based on the code Id 357. How can I instantiate the smart contract from that code id?
  2. Do we need to deposit also everytime we instantiate contract from the code uploaded on the mainnet?
topaz seal
fossil condor
topaz seal
fossil condor
willow cedar
#

Do we have any code id for creating cw20 token at injective testnet ?

#

Just want to instantiate and deploy my token

hardy wraith
#

@topaz seal any ideas how long it takes to be reviewed for token metadata?

willow cedar
#

Testnet down ?

topaz seal
fossil condor
willow cedar
#

Testnet is down

#

For ~4-5 hrs

twilit sable
#

i have a question about oracle price, MsgRelayPriceFeedPrice will update the onchain Oracle price, but who will call this function and update the price ?

willow cedar
#

Testnet explorer is dead

#

@primal terrace

austere bobcat
willow cedar
oblique copper
#

Btw it seems testnet is back.

mental river
#

Hey guys, if any one could help sort my queries, as I haven’t been able to find any information on this matter.

Transactions on inEVM does it get added to the injective block?

hardy wraith
topaz seal
mental river
keen prairie
#

Yo guys, was looking in the cw-injective repo but didnt manage to find anything ready to interact with the auction module; maybe i missed it? Or it need to be built yet?

topaz seal
open rivet
#

Hey guys!! I've got a really simple question but I've struggled to find an answer online
When broadcasting a TX, if the result contains a code that equals 0, does that mean that the transaction for sure succeeded? Or simply that it was sent successfully to the network?

#

Perhaps @topaz seal you might have the answer? It's really simple I'm sure but it's been quite the struggle to find a clear answer online sadly

topaz seal
open rivet
topaz seal
#

The "code" in the response has different meaning depending on the broadcast method. Generically we could say that "code" 0 menans the transaction was broadcasted. "code" != 0 means there was a problem during broadcasting

open rivet
#

Thanks a lot for taking the time to answer btw

open rivet
keen prairie
open rivet
#

maybe I could just try making a tx sending more tokens than what I actually own to test, but I figured I would ask first since it should be fairly easy to tell for people used to the ecosystem

keen prairie
#

So you can figure out everything, sorry i cant help much more

open rivet
hardy wraith
#

@topaz seal quick problem please, how can we verify by tx hash that txc gone thourhg successfully or failed?

#

@kind flare i will appriciate answer as i urgently need it

topaz seal
hardy wraith
topaz seal
#

In fact Arthur was speaking about that a couple of messages before

hardy wraith
hardy wraith
#

@topaz seal there is nothing is response object of tx fetch that if it succeeded or not:

keen prairie
hardy wraith
# keen prairie Try checking of there are error logs; if no error logs than tx probably succesfu...

[Running] node "f:\Tokens making code\Injective\DDL Create\FetchTz.js"
{
id: '',
blockNumber: 25444582,
blockTimestamp: '2024-04-06 011726.883 +0000 UTC',
hash: '0x9c5ee444384a3fce4230e461463cfe2ced18722df0a5732100cd07d7f8240db2',
code: 0,
info: '',
memo: '',
gasWanted: 400000,
gasFee: {
amounts: [ [Object] ],
gasLimit: 400000,
payer: 'inj1ef5ddgx4q83a8mmap2gxsc7w5q5pj6rmfhjaex',
granter: ''
},
gasUsed: 85822,
codespace: '',
signatures: [
{
pubkey: '0292c2c4390f65b38c094dbae6cd9d9c28b3c27c898347f9acccdd084ae946eec7',
address: 'inj1ef5ddgx4q83a8mmap2gxsc7w5q5pj6rmfhjaex',
sequence: 24,
signature: 'skUopKxa6ZfjXRsgkU6whKK7ENRYHrcJHkQAklBnnsFPGIC0WP4vsmKcaC/94A1sYGwdmoei5snkN6Ofw53KDw=='
}
],
txType: 'injective',
data: 'EiYKJC9jb3Ntb3MuYmFuay52MWJldGExLk1zZ1NlbmRSZXNwb25zZQ==',
events: [],
messages: [ { type: '/cosmos.bank.v1beta1.MsgSend', message: [Object] } ],
logs: [ { msg_index: 0, events: [Array] } ],
errorLog: '',
claimIds: []
}

[Done] exited with code=0 in 2.179 seconds

#

@topaz seal thats the problem, we dont have anyway to check status, i got a rare rerror, if we sign tx from wallet but less balance tx is like same as real one, butlater its declined, but if fetched its same as real one

#

this was real, lemme give u a tx which was failed

keen prairie
#

Bro just check errorLog

hardy wraith
keen prairie
#

Show failed one

#

Give hash

hardy wraith
#

got error

#

code if non zero of tx fetched = unsuccessfull, if error log is not epmty= unsuccessfull

#

got it

topaz seal
#

Wow, incredible! Exactly as specified in the docs! Who could have anticipated that?

spice sail
#

any way to increase gas fees while using msg send/broadcast?

keen prairie
#

Also can set gas limit but will make your transaction more expensive probably

open rivet
spice sail
topaz seal
keen prairie
#

But not sure if that will give you speed

#

Looking to snipe? 🤣

spice sail
spice sail
spice sail
topaz seal
spice sail
#

Or is it randomly

#

Also, 13:00:13 vs 13:00:12 is 0:00:01 difference? Seems pretty small between blocks. Please enlighten me

topaz seal
#

Well, yes, of course TXs are processed in sequence when a block is produced. You can check Tendermint documentation if you are insterested in the low level details.

topaz seal
spice sail
#

Since you are here, did you guys fix your documentation compact - compat thingy?

topaz seal
spice sail
#

Its about this on the docs.ts.injective.network/core-modules/wasm#msgexecutecontractcompact

#

The actual module is compat not compact

topaz seal
topaz seal
# spice sail Its just the injective explorer showing many tx that got sent at same time

Please double check your screenshot. The timestamp format for the time is hh:mm:ss, meaning that the last number there represents seconds units. If there is a difference of 1 between the last TX of a block and the first TX of the next, that does not mean the new block was produced 1 ms after the previous one. It means it was produces 1 second after the last.

spice sail
#

@kind flare

spice sail
#

""@injectivelabs/sdk-ts"" doesn't have the exported member named "MsgExecuteContractCompact". Do you mean "MsgExecuteContractCompat"?

kind flare
#

okay, we will fix

keen prairie
keen prairie
wooden ether
#

Guys, so I am a fully tech guy, works on full stack dev/devops and smart contracts (rust, solidity). I have a pretty good idea, which I think I can implement and I know can change the way DEXs work (coz I havent seen the same idea anywhere else implemented). I don't know how to get started or how to put that into a real functional dapp. Can someone please guide me
PS: I want this to be over Injective, that's y I am asking this here

wooden ether
lime ruin
quartz oar
#

Hello, does anyone know how to provide liquidity to an astroport pair using the python sdk ? Thank you !

fossil condor
#

@topaz seal Hi Abel, did you have a nice weekend?
Would you let me know how I can execute injectived command from a smart contract address, not my wallet?
I want to get that contract address as the sender in cosmwasm_std::MessageInfo.

jolly pulsar
jolly pulsar
topaz seal
fossil condor
spice sail
keen prairie
hardy wraith
oblique copper
#

Just stay patient and it'll be done soon.

jolly pulsar
#

Gm ninjas! I'd like to invite you guys to a builders-only TG chat. Feel free to use this chat as another avenue to ask questions and provide feedback to your fellow builders. Please note that this is strictly a technical group; if you have any questions feel free to DM me: https://t.me/+8Y_0HOFLhnRlZDU9

fossil condor
#

@topaz seal Is 10INJ enough for submitting the proposal?
And then it will be passed once 100INJ is deposited to the proposal, right?

topaz seal
fossil condor
topaz seal
#

From any interested party in the particular result of the proposal. In the case you are planning to upload to the chain your contract, the full deposit should come from you. It is not usual that the community will provide funds to help lunch a private project (it could happen, but I would not count on it)

fossil condor
topaz seal
fossil condor
topaz seal
#

Please read my answer: "the field shows the CURRENT deposits in the proposal"

severe juniper
#

can someone point me in the right direction

oblique copper
hardy wraith
jolly pulsar
oblique copper
snow dove
# kind flare okay, we will fix

I have a question regarding the streamBlocks socket. Is there a way to implement it in a way, that it reconnects in case it doesn't get the new block data? Thanks

kind flare
kind flare
snow dove
kind flare
#

When you establish a connection, if the connection dies out you’ll get a error response back from the server

open rivet
#

Hey guys, I was wondering if you had something I could check in order to implement arbitrary signature verification? (I'm using the signArbitrary method of the wallet strategy, and look to verify it). Using the TS package

brittle widget
#

hey guys, just want to double check something from the docs: if I want to deploy a cosmwasm contract to injective mainnet does it need to be approved via the governance process?

lime ruin
brittle widget
#

ah interesting, as a solidity dev this is a very alien concept

#

is there a list of contracts which have already been deployed & can be instantiated by anyone?

#

my use case seems quite generic, looking for a bonding curve token mint/burn wrapper for CW20

lime ruin
brittle widget
#

fab thank you, will take a look

#

Last Q, almost there - I can see the wasm bytecode within the code, is there a way I can decompile it to see the callable functions?

#

Looking for something similar to the way etherscan has a solidity decompiler or write/read functions tab

topaz seal
#

There is no tool for that. You would need to get in touch with the contract code developer to get access to the source code

#

Remember that solidity is a JavaScript subset, and JavaScript is an interpreted language. Cosmwasm implementation is Rust, and Rust is not interpreted

brittle widget
#

gotcha

#

but is the code not published for each wasm contract? how does the governance process work if people can't review the source code?

#

would make for great DX if there was a schema for these smart contracts which are callable by everyone, especially if it was integrated into the explorer

#

I'm sure I can figure it out by going through all the associated txns

frosty kiln
fossil condor
ancient summit
#

Hi, can someone assist me? I am looking to know more about the injective network so hopefully we can do dev work. I can't seem to find the genesis hash and hash algorithm of the network. thank you

ocean arch
#

Hello, is there a problem with the API? I can't do any more transactions and the sequence of my account doesn't increment, I have the error: block height: 65836893, timeout height: 65836580 : tx timeout height

frosty kiln
# ancient summit Hi, can someone assist me? I am looking to know more about the injective network...

Consensus is tendermint (or rather now renamed to comet-bft). Not sure what you want with genesis hash, but more info here https://docs.injective.network/

Injective is a lightning-fast, interoperable, layer one blockchain optimized for building premier Web3 financial applications. Injective provides developers with robust plug-and-play modules such as a fully decentralized orderbook, binary options, real-world asset (RWA) module, and more, allowing developers to build a diverse array of sophistica...

ocean arch
ocean arch
#

In fact it's the same problem all over again, what's the reason?

exotic parrot
#

Hey, a protocol I collaborate with is interested in airdropping their token towards injective users. What's the best way to go around it? Is there a submission form we can apply at to get support from the foundation?

slender pike
#

Hey guys
Is there anyone here who recently started coding for injective ecosystem and felt that it was hard but now its going fine?

I've deployed "my-first-contract" as the getting started suggests, yet I still feel a big lack of understanding of what I did.

Can someone point me a route/path or how was it for you to get used to it?

jolly pulsar
slender pike
exotic parrot
woeful moon
#

is it possible to query holders of a certain token factory token? or do you have to somehow know the holders and fetch their balances ?

fossil condor
#

@topaz seal How are you doing today, Abel?
Do we have a code for token launchpad already deployed to the mainnet?

quick shard
#

I'm try to using "InjectiveLabs/injective-token-meta” moduel

I tried tokenFactory.toToken(ibc/*** on cosmos)

returnd undefined.

Is that moduel only use INJECTIVE?

Can I use RPC to get information about tokens that do not exist in "meta/token_meta.json"?

earnest cypress
#

When trying to add a testnet network through the official documentation for metamask I receive the error:

This network doesn't match its associated chain ID or name. Many popular tokens use the name INJ, making it a target for scams. Scammers may trick you into sending them more valuable currency in return. Verify everything before you continue.

https://docs.injective.network/develop/inEVM -> https://inevm.caldera.dev/

inEVM is the first-ever Ethereum Virtual Machine capable of achieving true composability across Injective and Ethereum. The inEVM network was developed as a collaboration between Injective and Caldera.

earnest cypress
#

??

jolly pulsar
earnest cypress
jolly pulsar
topaz seal
west burrow
#

which wallet does support the injective testnet ? @topaz seal

#

I can see my cw20 token in explorer but can not see it in Ninja wallet

topaz seal
#

In general all wallets do allow to add new networks, as a configuration

#

I am not an expert on Ninja wallet, but I would assume they should provide that option. If not, try Kepler or Metamask

earnest cypress
robust jasper
#

Hey guys,I wish to create a betting game where users can bet on the outcomes of a red or blue color square. I wish to insure the side that puts in the most value.

Could you please answer a few questions?

1)If injective is built upon the cosmos SDK, could I scaffold a cosmos SDK project and add injective processes to my network, or does injective use low level tendermint consensus causing me to scaffold an injective project first?

If so, what's the project I could start off at?

  1. Could you point me to an example where a user creates a Binary options market, and further does some bidding game in it?

Thanks.

wet rover
wet rover
jolly pulsar
jolly pulsar
wet rover
#

I know it @jolly pulsar thanks for sharing for everybody here. ❤️

fossil condor
fossil condor
west burrow
#

@topaz seal how are you ?
how much INJ need to be deposited for contract upload proposal ?

oblique copper
willow cedar
#

Testnet down ?

willow cedar
#

Tx is being sent for instantiating and i can receive transaction hash but transaction is being not found in injective testnet and also code id too. Why? @primal terrace @topaz seal

topaz seal
wet rover
#

Hi guys, I am reading about Web3 Gateway API used to delegate transaction fees.

My question is, is there a sample/ sandbox Gateway API developed already to refer to?

willow cedar
#

Aaah, i’m sorry. I wrote wrong. Just i can’t store code to injective testnet rn. Transaction is being created but on explorer it can’t find my transaction for storing my code. Does testnet have any problems right now ?

topaz seal
willow cedar
#

I used this command and transaction is being created : EDBD1F07C10E1FAE7B41599308DDA0A99973BD3E763A4752D8CEE01A3703E4B0

#

But on testnet explorer it does not show up. Also my code id is not created.

topaz seal
#

What is the result in the console after executing the command?

willow cedar
#

code: 19
codespace: sdk
data: ""
events: []
gas_used: "0"
gas_wanted: "0"
height: "0"
info: ""
logs: []
raw_log: ""
timestamp: ""
tx: null
txhash: EDBD1F07C10E1FAE7B41599308DDA0A99973BD3E763A4752D8CEE01A3703E4B0

topaz seal
#

Please try adding this parameter and let us know if the error in the console is any different:
--broadcast-mode=sync

#

Also: do you have enough balance in the account you use to broadcast the TX to pay for the code store cost?

willow cedar
#

My code id is generated after an hour, i guess testnet is a bit slow rn

night stream
#

Hey guys, Glad to be here, I would like to know what is the minimum stake cost and hardware requirement to become a validator node of INJ?

#

Does anyone know about this
cpu:
Memory:
Disk:
minimum stake cost:

night stream
deep arrow
#

Can someone gimme a hand here, i want to contribute to develop INJ.

#

What language should i learn 1st for beginners.

jolly pulsar
fast ocean
#

Hello, can Injective contracts be upgraded like Proxy contracts in EVM?

whole jacinth
#

Why someone deletes my msg?
I was asking how can I contribute to the INJ ecosystem.
Didnt find any better channel

topaz seal
whole jacinth
#

I mentioned that I want to contribute by coding.

#

I will try in another channel 🙂 ty

long lion
#

hi! im looking into running a node for injective. is there anyone who can help me out here?

topaz seal
long lion
#

ah thanks!

ocean arch
#

Hi ! I have this weird error suddenly : grpc.aio._call.AioRpcError: <AioRpcError of RPC that terminated with:
status = StatusCode.INTERNAL
details = "failed to list subaccounts for address [MyAddress]: failed to query documents: server selection error: server selection timeout, current topology: { Type: Single, Servers: [{ Addr: mongo:27017, Type: Unknown, Last error: connection() error occurred during connection handshake: dial tcp: lookup mongo on 127.0.0.11:53: server misbehaving }, ] }"
debug_error_string = "UNKNOWN:Error received from peer {grpc_message:"failed to list subaccounts for address [MyAddress]: failed to query documents: server selection error: server selection timeout, current topology: { Type: Single, Servers: [{ Addr: mongo:27017, Type: Unknown, Last error: connection() error occurred during connection handshake: dial tcp: lookup mongo on 127.0.0.11:53: server misbehaving }, ] }", grpc_status:13, created_time:"2024-04-18T21:21:25.8723674+00:00"}"

#

It happens when I try to run the fetch_portfolio funcion

#

@topaz seal Can you help ?

prisma thicket
ocean arch
#

I'm trying to get my portfolio informations and i have the error above

#

that wasn't the case all day

#

Do you need more information ?

#

It would be amazing !

ocean arch
#

Zabelle didn't help me finally can anyone else help me ?

brittle chasm
#

no memeber role

velvet hollow
#

I am a developer who wants to build binary-options trading platform on injective network.
I am gonna bet against bitcoin prices (e.g, BTC/USDT feed).
According to documentation, the oracle type should be Provider, and now I want to know how to build my own oracle or how to use existing oracle for binary markets.
Please help me. I cannot find any relevant documentation.
Thanks.

rare hedge
shut canopy
rare hedge
topaz seal
ocean arch
#

The problem has been solved after a few hours

woven pumice
#

which wallet support injective cw721 ? I want to see nft in wallet

#

@topaz seal

mortal kelp
slender pike
#

Hi guys, are you aware if the structure of this event "message" is always like this?
Does it always have these 3 lines "action", "sender" and "module" ?

topaz seal
slender pike
#

The Message is MsgBatchUpdateOrders, right?
And it can have more than one message in each transaction.

But there is the 'event type' called 'message'

topaz seal
#

yes, that event has the mentioned format

spare vine
#

I’m from the @Galactic_Mining team working with @JGnft_is_me launching the @GalacticSynd project on your chain in May. But we are having a little road bump as we are trying to get @arkprotocol to be able to allow us to creat a bridge between INJ and Terra. Is there a point person that I could get in contact with to facilitate this? Thank You for your time.

spare vine
open rivet
#

Hey guys (poke @topaz seal), I was wondering if you had something I could check in order to implement arbitrary signature verification? (I'm using the signArbitrary method of the wallet strategy, and look to verify it). Using the TS package

topaz seal
kind flare
open rivet
open rivet
#

I'm talking about something like :

  • dapp has user sign "Hello I'm <address> with nonce 1234 and want to login" with they wallet
  • dapp sends signature + address to the backend and backend can verify that the signature is valid
open rivet
#

There must be some kind of misunderstanding there, maybe I'm not making sense lol

#

I'm just asking for a simple cryptographic signature verification, not anything fancy

kind flare
# open rivet Are you serious?

Yes, I am, there is no way to do it on the client side for now. If you believe there should be one, please submit a PR and I'll gladly review it. We didn't had the need to do it for now so it wasn't added to the SDK.

open rivet
# kind flare Yes, I am, there is no way to do it on the client side for now. If you believe t...

I understand why this has not been added to the SDK, probably not enough people asking for it.
But don't you have some snippet of code to spare ? 😭 I know how to verify Injective EVM wallet signatures, but for Cosmos based wallets I have no clue (talking about doing it with CosmJS here). That would help a ton, especially since I've seen I'm not the first to ask for this in this discord server 🙏

kind flare
#

I'll add support late this week or early next week

open rivet
slate gorge
#

hi. arthur, I got an error when sending the transaction result, it returns the error code: , my address is generated by
hdPath is m/44'/60'/0'/0/0/0.

bleak holly
lime ruin
# bleak holly any1 has an idea how i can use public node with ts sdk? https://injective-rpc.pu...

Apparently you can just make an object of your own networks like this:

const endpoints = {
  indexer: 'https://sentry.exchange.grpc-web.injective.network',
  grpc: 'https://sentry.chain.grpc-web.injective.network',
  rpc: 'https://sentry.tm.injective.network',
  rest: 'https://sentry.lcd.injective.network',
  chronos: 'https://sentry.exchange.grpc-web.injective.network',
  explorer: 'https://sentry.exchange.grpc-web.injective.network',
  cache: 'https://staging.gateway.grpc-web.injective.network',
  web3gw: 'https://sentry.exchange.grpc-web.injective.network'
}

Here's an example to fetch portfolio balances using this:

import { IndexerGrpcAccountPortfolioApi } from "@injectivelabs/sdk-ts";

const endpoints = {
  indexer: "https://sentry.exchange.grpc-web.injective.network",
  grpc: "https://sentry.chain.grpc-web.injective.network",
  rpc: "https://sentry.tm.injective.network",
  rest: "https://sentry.lcd.injective.network",
  chronos: "https://sentry.exchange.grpc-web.injective.network",
  explorer: "https://sentry.exchange.grpc-web.injective.network",
  cache: "https://staging.gateway.grpc-web.injective.network",
  web3gw: "https://sentry.exchange.grpc-web.injective.network",
};
const indexerGrpcAccountPortfolioApi = new IndexerGrpcAccountPortfolioApi(
  endpoints.indexer
);

const injectiveAddress = "inj...";

const portfolio =
  await indexerGrpcAccountPortfolioApi.fetchAccountPortfolioBalances(
    injectiveAddress
  );

console.log(portfolio);
bleak holly
#

alright can i fetch transactions using rest endpoint>?

#

or does it have to be explorer?

bleak holly
#

what are these btw?

#

ooh now i see these are rest endpoints

lime ruin
#

Can't find anything about it in docs though, usually the explorer endpoint is used.

wraith crest
#

Hello, using injective sdk-ts, I'm struggling to construct a PublicKey from a compressed public key in hex.

I've tried many things without sucess.
Code looks something like this:

const injPubKey = PublicKey.fromBytes(Buffer.from(pubkey, "hex"));

I'm getting a pubkey but with the wrong bech32 address.

Any idea? Probably missing some encoding I guess

kind flare
wraith crest
woven pumice
#

Is there any cw721-base wasm code uploaded to mainnet ? so I can instantiate it and use.
@topaz seal

topaz seal
slender pike
#

Hi... I have some common doubts emerging while I'm learning coswasm development .
Like... do you know a practical example of what an automated smart contract allows me to do in injective that it is not possible in ethereum?
I do think its good but I could only digest it conceptually
Limit order executions using the exchange module is a byproduct of being able to have automated smart contract executions right?

topaz seal
toxic forge
#

Could anyone point me to resources for running injective testnet locally for dev?

#

The official docs have a "todo" there

#

I'm essentially just looking for a docker env to run and the mnemonic of the dev account

neon needle
#

Injective

floral sage
#

Once a contract proposal is accepted do contract changes also need a new proposal?

quick yacht
#

Hi i'm Garve BD with Phoenix labs the team behind spark protocol and MakerDAO. We have a proposal who may i speak with.

fresh flicker
#

hi, how to get ibc token meta data in injective ? anyone can help me? thank you!

cold fractal
#

Hey Injective team! Fringe Finance has integrated INJ token into the Lending and Margin trading platform. Who is the best person on your end to discuss the community support?

lime ruin
shut ferry
#

guys is there any full archivel rpc node

bleak holly
#

I am trying to generate a wallet for testing using the ts sdk and im getting this error

const privateKey = PrivateKey.generate();```

```error
TypeError: Cannot read properties of undefined (reading 'generateMnemonic')```


any help?
topaz seal
#

Sorry, I can't help with wasm related questions.
cc: @frosty kiln

topaz seal
topaz seal
floral sage
topaz seal
bleak holly
#
import { IndexerRestExplorerApi, PrivateKey } from "@injectivelabs/sdk-ts";```
topaz seal
bleak holly
#

alright, it should have installed it automatically 🙂

west burrow
#

@topaz seal

#

I think the DISTRIBUTE object is wrong, would you please give me an advise ?

topaz seal
#

Please espeficy the injectived command you are using, and the full error text

west burrow
#
pub enum ExecuteMsg
{
    SetDistribution {
        nft_addr: String,
        schedule: (u64, u64, Uint128),
    }
}

export DISTRIBUTION='{"set_distribution":{"nft_addr":"inj1zqavka8dqqugp3fu0rr8jhslhcm4r4v2t5lh5s","schedule":["0","0","100"]}}'

yes 12345678 | injectived tx wasm execute inj17fva37s3qtw95ayv8ye7ty2ga7wkyejc4xl6pk "$DISTRIBUTION" --from=$(echo $INJ_ADDRESS) --chain-id="injective-888" --yes --gas-prices=160000000inj --gas=20000000 --node=https://testnet.sentry.tm.injective.network:443
#

https://testnet.explorer.injective.network/transaction/FC415CDC25F5CB6875E2B00A00E53B86574BBE51C0DA95B00764D1A1EC678014/

#

I think the issues coming from the schedule property in the DISTRIBUTION object

#

@topaz seal

west burrow
#

Would you please check above msg for me ? @topaz seal

topaz seal
#

Based on the TX, the problem is inside the contract. But I don't have access to the contract code, so there is not much I can do. I would suggest testing it again respecting the variable names in the JSON representation

fresh flicker
#

i want to get token meta data on injective ,but some ibc token ,i can’t get.

#

@topaz seal

topaz seal
#

You should check IBC documentation

toxic forge
#

Today while uploading a wasm via the authz grant we have, which worked perfectly well yesterday several times, I'm now seeing

    at Dp.sendTransaction``` 
in the logs. Wondering if you have any clue what this could be? I already tried in an incognito window with a new keplr session. No work. If you look at the reported block height and timeout height, they're different by thousands. Not sure what this is saying. I've tried multiple RPC providers as well.
#

It smells like a FE bug but really not sure at this point

toxic forge
#

Disregard. I'm pretty sure some packages on my end were stale

ocean arch
#

Hi ! I have this error :
grpc.aio._call.AioRpcError: <AioRpcError of RPC that terminated with:
status = StatusCode.INTERNAL
details = "failed to list markets: failed to query documents: server selection error: server selection timeout, current topology: { Type: Single, Servers: [{ Addr: mongo:27017, Type: Unknown, Last error: connection() error occurred during connection handshake: dial tcp: lookup mongo on 127.0.0.11:53: server misbehaving }, ] }"
debug_error_string = "UNKNOWN:Error received from peer {grpc_message:"failed to list markets: failed to query documents: server selection error: server selection timeout, current topology: { Type: Single, Servers: [{ Addr: mongo:27017, Type: Unknown, Last error: connection() error occurred during connection handshake: dial tcp: lookup mongo on 127.0.0.11:53: server misbehaving }, ] }", grpc_status:13, created_time:"2024-04-24T22:16:21.8544399+00:00"}"

When i try to run : client.composer()

It happens suddenly...

#

I also got this error sooner :
grpc.aio._call.AioRpcError: <AioRpcError of RPC that terminated with:
status = StatusCode.UNAVAILABLE
details = "failed to connect to all addresses; last error: UNAVAILABLE: ipv4:51.81.221.159:443: Connection timed out"
debug_error_string = "UNKNOWN:Error received from peer {created_time:"2024-04-24T17:25:15.2097005+00:00", grpc_status:14, grpc_message:"failed to connect to all addresses; last error: UNAVAILABLE: ipv4:51.81.221.159:443: Connection timed out"}"

When i try to run
fetch_subaccount_orders_list

unreal inlet
topaz seal
ocean arch
ocean arch
main heron
#

Does anyone know how to decode "contract_addr":"ap9EAU7flGVyYxFDD8EATSO75eU="" on the chain?
{"asset_infos":[{"Token":{"contract_addr":"ap9EAU7flGVyYxFDD8EATSO75eU="}},{"NativeToken":{"denom":"inj"}}],"contract_addr":"4DUFF13THM5ptoczh/TicZlJZps=","liquidity_token":"BGIdmryUnZfvSA6HdS1qR8tn7vk=","asset_decimals":[6,18]}

#

I thought it could be decoded with base64, but when I decoded it with base64, it was garbled.

wraith crest
# wraith crest indeed, it was derived with Fireblocks with ethereum as coin_type in derivation ...

Hey @kind flare , after trying to sign an EIP-712 message and broadcast it to injective, I'm still facing an incorrect pubkey issue when broadcasting (error: pubKey does not match signer address inj19ndrue0wkh8pdxtnfmz7kg0p3pr7qm95rwwujl).

My compressed pubkey (hex) is 027cec7aa35df6c938c1fa19a5b870212c14346c7c83e75fcc30d7f1615f405808
My injective address: inj19ndrue0wkh8pdxtnfmz7kg0p3pr7qm95rwwujl
As you can see from this tx in the signatures: 0x462cde888c1e00263c379eac49e9ad67ab9c5cc9f0d724ec0c12bb154140cfe3

Could you help figuring out how to construct the base64 pubkey expected by injective-sdk?

topaz seal
ocean arch
#

You mean running my own node ?

topaz seal
#

Correct

#

or using some of the nodes providers

ocean arch
#

Okay thanks you ! One more question what should I do when an error like this happens ? My only option is to wait ?

topaz seal
#

If you are using the public servers yes. If you are running your own node, that error is not expected and an investigation would be required

shut ferry
topaz seal
ocean arch
topaz seal
wraith crest
kind flare
wraith crest
# kind flare We are using this approach for 3 years now without any issues, you are probably ...

yeah injective-sdk was not adapted to our needs. We ended up getting it to work with cosmjs. Only thing to change is to use the StargateClient with injective's accountParser like so:
export default class CustomStargateClient extends StargateClient { static async customConnect({ endpoint, accountParser, }: { endpoint: string; accountParser?: AccountParser; }): Promise<CustomStargateClient> { const tmClient = await Tendermint37Client.connect(endpoint); return new CustomStargateClient(tmClient, { accountParser }); } }

It's a bit misleading to say in the docs that cosmjs cannot be used 😉

kind flare
tardy sun
tardy sun
#

Understand me bro

#

Accept my request

kind flare
tall plover
#

Hi, I newbie. I am learning from zero about Injective. My first question, is: I can learn and installr Injective in Windows machine? thank you!

open rivet
#

@kind flare You're the freaking man!! Thank you so much for adding the signature verification to the package 🙏

tardy sun
kind flare
hybrid hemlock
# tall plover Hi, I newbie. I am learning from zero about Injective. My first question, is: I ...

here:
Injective Developer Docs: https://docs.injective.network/
Developer Overview: https://injective.com/developers

Injective is a lightning-fast, interoperable, layer one blockchain optimized for building premier Web3 financial applications. Injective provides developers with robust plug-and-play modules such as a fully decentralized orderbook, binary options, real-world asset (RWA) module, and more, allowing developers to build a diverse array of sophistica...

Injective | The blockchain built for finance

Injective is an open interoperable smart contracts layer-one blockchain network optimized for decentralized finance applications.

hybrid hemlock
severe rapids
# kind flare We can chat here as well

Hello sir, happy weekend
Can you assist me on how to track injective NFTs from various INJ wallets?

If there is any Doc I can read Or white paper, I don't mind reading them.

oblique copper
#

They use graphiql for it btw.

#

You can inspect their page and then check the networks tab to see various endpoints they may have.

#

Not sure if it's allowed by them though, so dyor if it is fine..

severe rapids
severe rapids
oblique copper
oblique copper
#

Apparently they don't allow others to access their API, so if you specifically want to use their API then up to you.

severe rapids
oblique copper
#

if you want just for personal use then check tfm/pulsar finance/ninja kits

severe rapids
oblique copper
#

not sure

small shuttle
#

Hey folks, where can I find latest info on how oracles work on Injective? This page (https://api.injective.exchange/#oracle) refers to MsgRelayPriceFeedPrice and MsgRelayProviderPrices, however I can't find these transactons in the block explorer.

heady rune
#

Alright man

#

Who wants to cook

#

I need devs

nimble pendant
buoyant crown
#

hi, I'm trying to deploy a smart contract on the mainnet. can anyone tell what's "proposal deposit", and what amount of inj should I put into it? thank you!

topaz seal
fossil condor
little sorrel
#

Hello, its possible to run a local node or even just running injected to query the chain through a live node on a raspberry pi ??

topaz seal
wide seal
#

Hey Im familiar with solidity and EVM but not really with cosmwasm, Is there an easy way to call functions of deployed contracts (Like in etherscan) without diving into cosmwasm too much?

fossil condor
buoyant crown
fossil condor
toxic forge
#

Should I be able to use MsgBroadcaster with an account loaded from metamask? I'm trying to debug a "unknown signer address" issue

#

I'm able to get the metamask account address, convert the addr to bech32 using getInjectiveAddress, but I guess I'm not sure what I need to do to instantiate the WalletStrategy and/or MsgBroadcaster.

#

I don't have any issue when I use native cosmos wallets, like keplr, leap, etc. In these cases, I use the graz library to load the user account

toxic forge
#

I think I have a lead. Problem might be on my end (between my eyes 😄 )

willow cedar
#

Be careful for the address part of your code when you’re about to create tx. Make sure that it’s same as connected signer address of the current wallet.

willow cedar
#

Is there a way to get specific transactions ( for example action : swap_tokens ) inside the contract executions on injective explorer via some API or smt else ? @topaz seal

topaz seal
toxic forge
#

Inj doesn't yet support CW 2.0, right? Just checking

velvet hollow
velvet hollow
#

am I wrong?

lime ruin
#

USDT isn't a CW20 token.

#

Just change the denom here to the denom of USDT.

const amount = {
  denom: 'peggy0x...',
  amount: ''
}
#

Oh, and MsgSend isn't only for INJ, the factory tokens and the peggy tokens can also be transferred using it.

velvet hollow
#

I believe it would be good to add this section in your documentation.

jolly pulsar
buoyant crown
#

how and when will I be able to get back the deposit that I paid for mainnet deployment?

lime ruin
cinder valley
#

Hi i'm Arbitrum ambassador from Japan
I have some question for dev in Injective
where is docs about inSVM

#

inSMV is now live?

lime mountain
willow cedar
#

Is new @injectivelabs/wallet-ts module working correct ?

#

i got such error when i use npm run dev after installing wallet-ts module

#

No matching export in "node_modules/@ledgerhq/errors/lib-es/index.js" for import "TransportRaceCondition"

mystic mesa
#

all devs are here?
i am a full stack web 3.0 developer how can i contribute to injective?

lime ruin
mystic mesa
lime ruin
# mystic mesa i am planning on creating P2P market for injective coins

If you want to build on Injective then you can get started by reading the developer documentation: https://docs.injective.network/

Injective is a lightning-fast, interoperable, layer one blockchain optimized for building premier Web3 financial applications. Injective provides developers with robust plug-and-play modules such as a fully decentralized orderbook, binary options, real-world asset (RWA) module, and more, allowing developers to build a diverse array of sophistica...

mystic mesa
little ocean
#

What is the zero address that I can renounce denom Admin (I'm using the Tokenfactory module)?

little ocean
#

Thanks

oak lotus
#

Hey Devs,

I am trying to get the event logs from specified block range using this url:

https://injective-rpc.publicnode.com/tx_search?query=%22wasm-CallMessage._contract_address%3D%27inj177fx40l0g3jqmtmmuyl2zhrjvhr3knvthlr0ul%27+AND+tx.height%3E%3D69726403%22&per_page=100

But the response is saying that

Please specify tx.height event with strict equality. Thank you for understanding

How do I achieve that? In my requirement, I don't know exactly which block has the transaction of my need so have to poll between blocks to get the desired response.Please help me with this one.

mystic mesa
#

i need collaboration from other devs let’s build meme on injective

oak lotus
topaz seal
oak lotus
#

That query was working for me for Archway and tried same with Injective but it didn't work.

topaz seal
oak lotus
#

Polling each block from the frontend seems like very tedious and heavy task, especially when I don't know after how many blocks the event will arrive. There isn't any other mechanism to poll or at least listen to events from certain blocks?

#

@topaz seal

young shoal
topaz seal
oak lotus
#

Theere's no way to listen to events at all?

topaz seal
#

yes, there is. But that is not Injective specific. That is provided by Cosmos echosystem really

#

but that is a websocket connection that will broadcast events as they happen, it does not provide historical info

oak lotus
#

Almost all popular blockchain allow events querying in block, why Injective doesn't support it?

#

https://rpc.mainnet.archway.io/tx_search?query=%22wasm-CallMessage._contract_address%3D%27archway19hzhgd90etqc3z2qswumq80ag2d8het38r0al0r4ulrly72t20psdrpna6%27+AND+tx.height%3E%3D3774352%22&per_page=100
You can see same type of query is supported by Archway, another chain in cosmos ecosystem.

#

@topaz seal

old cave
#

need some help
i use JS for generation my wallet addresses

I'm getting same addresses for cosmos, Nuetron but INJ different from my Keplr wallet address
any help pls ? 😄

topaz seal
oak lotus
#

Whom can I consult with that specific issue then? Same query params returning value in Archway but not in Injective.

topaz seal
old cave
topaz seal
old cave
topaz seal
#

Then that is your problem, you should be using injective-ts sdk

fossil condor
#

@topaz seal In my smart contract, I have denoms with type cw20::{ Denom }.
When instantiating the smart contract, how can I define token pairs with ibc or factory prefix?
ex. ibc/D50E26996253EBAA8C684B9CD653FE2F7665D7BDDCA3D48D5E1378CF6334F211

topaz seal
midnight sonnet
#

is there any difference in terms of gas utilization when a contract queries its own state vs. querying the state of another contract via QuerierWrapper?

#

essentially, i have two contracts: A and B. B has to query an enumerable, paginated mapping from A to periodically perform computations. I'm trying to figure out if it is more efficient (in terms of resource usage/gas) to cache the mapping in B or to just query it every time it is needed

fossil condor
fossil condor
small totem
light parrot
#

anyone here knows if there's an efficient way to get all token holders with their balance of a cw20 token? trippy provides a tool, but its slow it has to send many requests

small totem
small totem
#

The Injective ABI might be in the docs or GitHub, but for decoding Helix transactions, you might need Helix-specific info.

https://docs.injective.network/

Injective is a lightning-fast, interoperable, layer one blockchain optimized for building premier Web3 financial applications. Injective provides developers with robust plug-and-play modules such as a fully decentralized orderbook, binary options, real-world asset (RWA) module, and more, allowing developers to build a diverse array of sophistica...

light parrot
reef fiber
small totem
fossil condor
willow cedar
#

Is testnetsentry down ? I can’t query sc.

frosty kiln
#

ibc and factory are bank denoms not cw20, so you would have to use them as bank. or if you have to use cw20, then you can use https://github.com/InjectiveLabs/cw20-adapter on mainnet: https://explorer.injective.network/contract/inj14ejqjyq8um4p3xfqj74yld5waqljf88f9eneuk/. it allows you to convert bank <> cw20 tokens. there are no guides for it unfortunately, so you'll have to read a bit into the code to understand it

GitHub

Contribute to InjectiveLabs/cw20-adapter development by creating an account on GitHub.

slender barn
#

Hi all,
I'm definitevely not a developper but I manage to do little things.
I'm now tryng to retreive the list of NFT owners of a specific collection but I don't know how to do it by a simple request.
I checked here: https://api.injective.exchange/#wasm-smartcontractstate but I don't know how to build the query...

developping in Python 🤷‍♂️

#

and can't I just retreive the data I want with a GET request ? 🙏

slender barn
pearl hound
# slender barn

Just by reading the error message, it's telling you what the problem is. The "query" variable seems to be invalid. I'd try this: query = '{"all_nft_info": {"limit": 300, "start_after": 0}}'

fossil condor
topaz seal
slender barn
#

and this works in js....

#

@topaz seal even with swagger, I don't know how to feed the query... 🤷‍♂️

tawny forge
#

How do I switch to my own RPC node? Can you give me code examples? thank you

topaz seal
solar nacelle
#

Does anyone know how to succesfully create a CW20 token from your rust contract (afaik it should communicate with inj14ejqjyq8um4p3xfqj74yld5waqljf88f9eneuk as the CW20 Tokenfactory)

hazy sand
#

Is there any chance to run injective node from source code? Can I somehow modify it?

hazy sand
#

How to subscribe for getting events on injective via websockets?

hazy sand
vestal spade
velvet hollow
#

I have created new cw20 token through token station.
How to import this token in my kepler wallet? I saw there is denom, but it didn't work.
Can anyone help me? Thanks

#

Or is this not cw20 token? How to create cw20 token?

#

@soft dome @topaz seal can you help me?

topaz seal
#

I am not sure if Keplr supports CW20 tokens. You should check with them

ancient yacht
#

Hello , is there a way I can sign into my ledger using coding?

zinc lintel
#

does anyone need a developer?

grizzled quail
#

Hello dev, There is my question. How is it possible to process 25000 TPS? Even if this topic is not important these days, I just wonder that.

Each transaction has to be checked their digital signature. it takes at least 2 miliseconds approximately.
If i am right, it is impossible processing transactions over 25k.
That is why i am asking in here.

Is it processed in parallel?

maybe although this is stupid question, but could someone explain it?

topaz seal
#

Hello everyone!
We’ve completed an integration with Notifi to improve our communication channels across the ecosystem. We encourage everyone to subscribe, as it’s going to be our primary means of communication with all Injective builders and participants. All users can now receive real-time updates through their preferred communication platforms, including Telegram, Discord, E-mail and Slack. You can subscribe to receive notifications for:

  • Injective SDKs (Python, Go, Typescript)
  • Chain upgrades (Testnet & Mainnet)
  • Developer tooling
  • New market listings
  • Incentive programs
  • Community updates
    And many more!
    To subscribe please follow this link: https://injective.com/notifications/
Injective | The blockchain built for finance

Injective is an open interoperable smart contracts layer-one blockchain network optimized for decentralized finance applications.

hazy sand
slender barn
pearl hound
pearl hound
wild moth
#

I have created a Token on TokenStation but it seems I can't find it on my keplr wallet.

#

Who can help me with this?

topaz seal
pearl hound
wild moth
#

Let me explain in more detail.

#

So I have created a denom throughout TokenStation on Injective testnet but I can't check the new created token on my Keplr wallet.

#

Denom: factory/inj172z2fxya77cfeknz93vv4hxegfdave6g7uz9y9/TestInj
Supply: 1000000000
Symbol: TestInj
Name: TestInj
Display: TestInj
Decimals: 6
Description: Test Injective Token
Logo URL: ipfs://bafkreie2jq5zqgias2pjct6dhord7iwtihylycx7xvl5kkpytjr7c2idny
Admin: inj172z2fxya77cfeknz93vv4hxegfdave6g7uz9y9

fossil condor
#

where can I get the kira faucet?

oblique copper
#

use injective hub to see it.

wild moth
#

I think we can't see the native tokens on the wallets but can see cw20 tokens.

#

right?

oblique copper
#

but tokenstation does not make cw20 tokens

#

it makes the token factory tokens

wild moth
#

Yes. they make native tokens.

oblique copper
#

ye

#

not all the wallets support these yet

wild moth
#

So your opinion is to use injective hub?

oblique copper
#

yup

#

or wallet which supports viewing native tokens too

#

like leap or ninji

#

or cosmostation too I think

wild moth
topaz seal
pearl hound
hazy sand
topaz seal
topaz seal
hard fog
#

Hello guys

#

I want to build a custom perpeptual dex on INJ, should I build the own matching engine or could I can use INJ for that? I don't want to use shared orderbook

#

@topaz seal

topaz seal
hard fog
#

here is the documents for building a dex, but I see only FE code, that means I will use your Dex SC, right? If true, that means my dex is use shared orderbook with another dex (cuz use the same smart contract). And I don't want that

topaz seal
#

If you think the orderbooks in Injective are implemented using smart contracts, I strongly recommend you to visit the documentation page (not the TS SDK documentation page, the Injective documentation page). You are not understanding the most basic and fundamental aspect of Injective chain

hard fog
#

do you have any github repos for custom perp dex, including SC and architecture @topaz seal ?

hazy sand
hard fog
topaz seal
# hazy sand I cannot find anything related to running indexer api locally in the docs.

Are you sure you are reading the correct doc page? https://docs.injective.network/nodes/running-a-node/api_traders

API traders who wish to run their own node for enhanced performance should refer to the Injective Exchange Service Setup Guide. This guide outlines the setup process for a core Injective node in addition to an Indexer service which is necessary for querying exchange data. Step 8 (Optionally Running the DEX Stack) can be skipped, as this is only ...

hazy sand
topaz seal
pearl hound
quiet horizon
#

@topaz seal Is quantity === leverage on a derivative order?

dusky bramble
#

hey has anyone used instantiate2 in a contract before? im using deps.api.addr_humanize(&cosmwasm_std::instantiate2_address(...)) and im getting the wrong address (too long, like normal CosmWasm chains), presumably because deps.api.addr_humanize doesn't know to use injective's shorter address format

topaz seal
quiet horizon