ok
but when It called send
function,we have from
parameter.
I have to give that value by that parameter
it may set some default value as current wallet address for that from parameter
how can I give ?
const ShowUniswapObserveValues = () => {
const { web3 } = useMoralis()
const amounti = web3.utils.toWei(â1â, âetherâ)
const receiver = â0x97EA4A24535B5b52C3e15912071F469AC2Ebcfb7â
const { data, error, fetch, isFetching, isLoading } = useWeb3ExecuteFunction({
abi: Abi,
contractAddress: â0xb65A60C3EE6D2cb39010e6e51337B2AB6869a5d5â,
functionName: âbalanceOfâ,
params: {
to :receiver,
value:amounti,
}
});
if (error) {
return (
<View style={styles.marginLarge}>
<Text>Error:</Text>
<Text>{JSON.stringify(error)}</Text>
</View>
);
}
return (
<Button
buttonStyle={{ width: 200, backgroundColor: "green" }}
containerStyle={{ margin: 5 }}
disabledStyle={{
borderWidth: 2,
borderColor: "#00F",
}}
onPress={() => fetch()}
disabled={isFetching}
loadingProps={{ animating: true }}
title="Send transaction"></Button>
{data && <Text>
{JSON.stringify(data)}
</Text>}
)
}
In this code , what should I fix ?
I donât know what you should fix, I can not understand all that code
you can see here how to post code on forum:
thank you
After âsendâ function calling , It is not showing confirm form in metamask app
is there any error, was metamask connected?
yes
It is aready conncected
After âtransferâ function calling ,It is redirecting metasmaks app ,then It have to show confirm button.
But It is not showing
can you help me ?
I donât know how to help, maybe you can share some screen shots too
what happens if you click multiple times on that send transaction?
this is wallet connect?
yes
I have used wallet connect and moralis
I have got error in react native while enabling web3 .
Can you help me ?
hi
{âcodeâ: 141, âerrorâ: âReturned values arenât valid, did it run Out of Gas? You might also see this error if you are not using the correct ABI for the contract you are retrieving data from, requesting data from a block number that does not exist, or querying a node which is not fully synced.â}
what is the reason ?
Can i add new blockchain suppourt to my moralis server?
you could get this error when the ABI is invalid, but I guess that you didnât provide any ABI?
you can add new blockchain support from the list of available chains
where should I add new blockchain support ?
no
I need to add new blockchain network