Skip to content

Commit 1b156b4

Browse files
committed
transfer kudos script
1 parent b5b7957 commit 1b156b4

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

scripts/transfer_kudos.js

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// go to https://gitcoin.co/kudos/send/?id=77
2+
// unlock metamask
3+
4+
var kudos_contract = web3.eth.contract(kudos_abi).at(kudos_address());
5+
var kudos_token_id = 11111;
6+
7+
var callback = function(error, result) {
8+
console.log(result[0].toNumber());
9+
console.log(result[1].toNumber());
10+
console.log(result[2].toNumber());
11+
console.log(result[3].toNumber());
12+
};
13+
14+
var callback2 = function(error, result) {
15+
console.log(result);
16+
};
17+
18+
// to confirm which kudos youre looking at
19+
kudos_contract.tokenURI(kudos_token_id, callback2);
20+
kudos_contract.ownerOf(kudos_token_id, callback2);
21+
22+
// to actually do transfer
23+
24+
kudos_contract.safeTransferFrom("0x000000", "0x000000", kudos_token_id, callback2);
25+
26+

0 commit comments

Comments
 (0)